java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.ChatPhotoInfo
- Enclosing class:
- TdApi
Contains basic information about the photo of a chat.
-
Field Summary
Modifier and TypeFieldDescriptionA big (640x640) chat photo variant in JPEG format.static final int
Identifier uniquely determining type of the object.boolean
True, if the photo has animated variant.boolean
True, if the photo is visible only for the current user.Chat photo minithumbnail; may be null.A small (160x160) chat photo variant in JPEG format. -
Constructor Summary
ConstructorDescriptionContains basic information about the photo of a chat.ChatPhotoInfo
(TdApi.File small, TdApi.File big, TdApi.Minithumbnail minithumbnail, boolean hasAnimation, boolean isPersonal) Contains basic information about the photo of a chat.ChatPhotoInfo
(DataInput input) Contains basic information about the photo of a chat. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Returns an identifier uniquely determining type of the object.int
hashCode()
void
serialize
(DataOutput output) Serialize the TDLib classMethods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
small
A small (160x160) chat photo variant in JPEG format. The file can be downloaded only before the photo is changed. -
big
A big (640x640) chat photo variant in JPEG format. The file can be downloaded only before the photo is changed. -
minithumbnail
Chat photo minithumbnail; may be null. -
hasAnimation
public boolean hasAnimationTrue, if the photo has animated variant. -
isPersonal
public boolean isPersonalTrue, if the photo is visible only for the current user. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
ChatPhotoInfo
public ChatPhotoInfo()Contains basic information about the photo of a chat. -
ChatPhotoInfo
public ChatPhotoInfo(TdApi.File small, TdApi.File big, TdApi.Minithumbnail minithumbnail, boolean hasAnimation, boolean isPersonal) Contains basic information about the photo of a chat.- Parameters:
small
- A small (160x160) chat photo variant in JPEG format. The file can be downloaded only before the photo is changed.big
- A big (640x640) chat photo variant in JPEG format. The file can be downloaded only before the photo is changed.minithumbnail
- Chat photo minithumbnail; may be null.hasAnimation
- True, if the photo has animated variant.isPersonal
- True, if the photo is visible only for the current user.
-
ChatPhotoInfo
Contains basic information about the photo of a chat.- Parameters:
input
- Serialized input- Throws:
IOException
- the deserialization failed
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-
serialize
Serialize the TDLib class- Specified by:
serialize
in classTdApi.Object
- Parameters:
output
- output data stream- Throws:
IOException
- the serialization failed
-
equals
-
hashCode
public int hashCode()
-