public class TLPhoto extends TLAbsPhoto
| Modifier and Type | Field and Description |
|---|---|
static int |
CLASS_ID
The constant CLASS_ID.
|
| Constructor and Description |
|---|
TLPhoto()
Instantiates a new TL photo.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deserializeBody(InputStream stream,
TLContext context)
Deserializing object from stream and context
|
long |
getAccessHash()
Gets access hash.
|
int |
getClassId()
Getting TL Class identification
|
int |
getDate()
Gets date.
|
long |
getId()
Gets id.
|
TLVector<TLAbsPhotoSize> |
getSizes()
Gets sizes.
|
boolean |
hasStickers() |
void |
serializeBody(OutputStream stream)
Serializing object body to stream
|
void |
setAccessHash(long accessHash)
Sets access hash.
|
void |
setDate(int date)
Sets date.
|
void |
setId(long id)
Sets id.
|
void |
setSizes(TLVector<TLAbsPhotoSize> sizes)
Sets sizes.
|
String |
toString()
Custom toString method
|
deserialize, serialize, serializepublic static final int CLASS_ID
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 TLVector<TLAbsPhotoSize> getSizes()
public void setSizes(TLVector<TLAbsPhotoSize> sizes)
sizes - the sizespublic boolean hasStickers()
public 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.