public class TLDecryptedMessageMediaExternalDocument extends TLAbsDecryptedMessageMedia
| Modifier and Type | Field and Description |
|---|---|
static int |
CLASS_ID
The constant CLASS_ID.
|
| Constructor and Description |
|---|
TLDecryptedMessageMediaExternalDocument()
Instantiates a new TL decrypted message media external document.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deserializeBody(InputStream stream,
TLContext context)
Deserializing object from stream and context
|
long |
getAccessHash()
Gets access hash.
|
TLVector<TLAbsDocumentAttribute> |
getAttributes()
Gets attributes.
|
int |
getClassId()
Getting TL Class identification
|
int |
getDate()
Gets date.
|
int |
getDcId()
Gets dc id.
|
long |
getId()
Gets id.
|
String |
getMimetype()
Gets mimetype.
|
int |
getSize()
Gets size.
|
TLAbsPhotoSize |
getThumb()
Gets thumb.
|
void |
serializeBody(OutputStream stream)
Serializing object body to stream
|
void |
setAccessHash(long accessHash)
Sets access hash.
|
void |
setAttributes(TLVector<TLAbsDocumentAttribute> attributes)
Sets attributes.
|
void |
setDate(int date)
Sets date.
|
void |
setDcId(int dcId)
Sets dc id.
|
void |
setId(long id)
Sets id.
|
void |
setMimetype(String mimetype)
Sets mimetype.
|
void |
setSize(int size)
Sets size.
|
void |
setThumb(TLAbsPhotoSize thumb)
Sets thumb.
|
String |
toString()
Custom toString method
|
deserialize, serialize, serializepublic static final int CLASS_ID
public TLDecryptedMessageMediaExternalDocument()
public int getClassId()
TLObjectgetClassId in class TLObjectpublic long getId()
public void setId(long id)
id - the idpublic long getAccessHash()
public void setAccessHash(long accessHash)
accessHash - the access hashpublic int getDate()
public void setDate(int date)
date - the datepublic String getMimetype()
public void setMimetype(String mimetype)
mimetype - the mimetypepublic int getSize()
public void setSize(int size)
size - the sizepublic TLAbsPhotoSize getThumb()
public void setThumb(TLAbsPhotoSize thumb)
thumb - the thumbpublic int getDcId()
public void setDcId(int dcId)
dcId - the dc idpublic TLVector<TLAbsDocumentAttribute> getAttributes()
public void setAttributes(TLVector<TLAbsDocumentAttribute> attributes)
attributes - the attributespublic 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.