public class TLDecryptedMessageMediaAudio extends TLAbsDecryptedMessageMedia
| Modifier and Type | Field and Description |
|---|---|
static int |
CLASS_ID
The constant CLASS_ID.
|
| Constructor and Description |
|---|
TLDecryptedMessageMediaAudio()
Instantiates a new TL decrypted message media audio.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deserializeBody(InputStream stream,
TLContext context)
Deserializing object from stream and context
|
int |
getClassId()
Getting TL Class identification
|
int |
getDuration()
Gets duration.
|
TLBytes |
getIv()
Gets iv.
|
TLBytes |
getKey()
Gets key.
|
String |
getMimeType()
Gets mime type.
|
int |
getSize()
Gets size.
|
void |
serializeBody(OutputStream stream)
Serializing object body to stream
|
void |
setDuration(int duration)
Sets duration.
|
void |
setIv(TLBytes iv)
Sets iv.
|
void |
setKey(TLBytes key)
Sets key.
|
void |
setMimeType(String mimeType)
Sets mime type.
|
void |
setSize(int size)
Sets size.
|
String |
toString()
Custom toString method
|
deserialize, serialize, serializepublic static final int CLASS_ID
public TLDecryptedMessageMediaAudio()
public int getClassId()
TLObjectgetClassId in class TLObjectpublic int getDuration()
public void setDuration(int duration)
duration - the durationpublic String getMimeType()
public void setMimeType(String mimeType)
mimeType - the mime typepublic int getSize()
public void setSize(int size)
size - the sizepublic TLBytes getKey()
public void setKey(TLBytes key)
key - the keypublic TLBytes getIv()
public void setIv(TLBytes iv)
iv - the ivpublic 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.