public class TLMessageMediaPhoto extends TLAbsMessageMedia
Modifier and Type | Field and Description |
---|---|
static int |
CLASS_ID
The constant CLASS_ID.
|
Constructor and Description |
---|
TLMessageMediaPhoto()
Instantiates a new TL message media photo.
|
Modifier and Type | Method and Description |
---|---|
void |
deserializeBody(InputStream stream,
TLContext context)
Deserializing object from stream and context
|
String |
getCaption()
Gets caption.
|
int |
getClassId()
Getting TL Class identification
|
TLAbsPhoto |
getPhoto()
Gets photo.
|
void |
serializeBody(OutputStream stream)
Serializing object body to stream
|
void |
setCaption(String caption)
Sets caption.
|
void |
setPhoto(TLAbsPhoto photo)
Sets photo.
|
String |
toString()
Custom toString method
|
deserialize, serialize, serialize
public static final int CLASS_ID
public TLMessageMediaPhoto()
public int getClassId()
TLObject
getClassId
in class TLObject
public TLAbsPhoto getPhoto()
public void setPhoto(TLAbsPhoto photo)
photo
- the photopublic String getCaption()
public void setCaption(String caption)
caption
- the captionpublic 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.