java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.ProfilePhoto
- Enclosing class:
- TdApi
Describes a user profile photo.
-
Field Summary
Modifier and TypeFieldDescriptionA big (640x640) user profile photo.static final int
Identifier uniquely determining type of the object.boolean
True, if the photo has animated variant.long
Photo identifier; 0 for an empty photo.boolean
True, if the photo is visible only for the current user.User profile photo minithumbnail; may be null.A small (160x160) user profile photo. -
Constructor Summary
ConstructorDescriptionDescribes a user profile photo.ProfilePhoto
(long id, TdApi.File small, TdApi.File big, TdApi.Minithumbnail minithumbnail, boolean hasAnimation, boolean isPersonal) Describes a user profile photo.ProfilePhoto
(DataInput input) Describes a user profile photo. -
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
-
id
public long idPhoto identifier; 0 for an empty photo. Can be used to find a photo in a list of user profile photos. -
small
A small (160x160) user profile photo. The file can be downloaded only before the photo is changed. -
big
A big (640x640) user profile photo. The file can be downloaded only before the photo is changed. -
minithumbnail
User profile 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
-
ProfilePhoto
public ProfilePhoto()Describes a user profile photo. -
ProfilePhoto
public ProfilePhoto(long id, TdApi.File small, TdApi.File big, TdApi.Minithumbnail minithumbnail, boolean hasAnimation, boolean isPersonal) Describes a user profile photo.- Parameters:
id
- Photo identifier; 0 for an empty photo. Can be used to find a photo in a list of user profile photos.small
- A small (160x160) user profile photo. The file can be downloaded only before the photo is changed.big
- A big (640x640) user profile photo. The file can be downloaded only before the photo is changed.minithumbnail
- User profile 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.
-
ProfilePhoto
Describes a user profile photo.- 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()
-