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, deserializeResponse
deserialize, serialize, serialize
public T deserializeResponse(InputStream stream, TLContext context) throws IOException
deserializeResponse
in class TLMethod<T extends TLObject>
IOException
public int getClassId()
TLObject
getClassId
in class TLObject
public void serializeBody(OutputStream stream) throws IOException
TLObject
serializeBody
in class TLObject
stream
- destination streamIOException
public void deserializeBody(InputStream stream, TLContext context) throws IOException
TLObject
deserializeBody
in class TLObject
stream
- source streamcontext
- tl contextIOException
Copyright © 2016. All rights reserved.