T - the type parameterpublic class GzipRequest<T extends TLObject> extends TLMethod<T>
| Constructor and Description |
|---|
GzipRequest(TLMethod<T> method)
Instantiates a new Gzip request.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deserializeBody(InputStream stream,
TLContext context)
Deserializing object from stream and context
|
T |
deserializeResponse(InputStream stream,
TLContext context) |
int |
getClassId()
Getting TL Class identification
|
void |
serializeBody(OutputStream stream)
Serializing object body to stream
|
String |
toString()
Custom toString method
|
castResponse, deserializeResponsedeserialize, serialize, serializepublic T deserializeResponse(InputStream stream, TLContext context) throws IOException
deserializeResponse in class TLMethod<T extends TLObject>IOExceptionpublic int getClassId()
TLObjectgetClassId in class TLObjectpublic void serializeBody(OutputStream stream) throws IOException
TLObjectserializeBody in class TLObjectstream - destination streamIOExceptionpublic void deserializeBody(InputStream stream, TLContext context) throws IOException
TLObjectdeserializeBody in class TLObjectstream - source streamcontext - tl contextIOExceptionCopyright © 2017. All rights reserved.