Package it.tdlight.jni
Class TdApi.ProfilePhoto
java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.ProfilePhoto
- Enclosing class:
- TdApi
public static class TdApi.ProfilePhoto extends TdApi.Object
Describes a user profile photo.
-
Field Summary
Fields Modifier and Type Field Description TdApi.File
big
A big (640x640) user profile photo.static int
CONSTRUCTOR
boolean
hasAnimation
True, if the photo has animated variant.long
id
Photo identifier; 0 for an empty photo.TdApi.File
small
A small (160x160) user profile photo. -
Constructor Summary
Constructors Constructor Description ProfilePhoto()
Describes a user profile photo.ProfilePhoto(long id, TdApi.File small, TdApi.File big, boolean hasAnimation)
Describes a user profile photo.ProfilePhoto(DataInput input)
-
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
int
getConstructor()
int
hashCode()
void
serialize(DataOutputStream output)
Methods 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. -
hasAnimation
public boolean hasAnimationTrue, if the photo has animated variant. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
- Constant Field Values
-
-
Constructor Details
-
ProfilePhoto
public ProfilePhoto()Describes a user profile photo. -
ProfilePhoto
Describes a user profile photo.- Parameters:
id
- long Photo identifier; 0 for an empty photo. Can be used to find a photo in a list of user profile photos.small
- File A small (160x160) user profile photo. The file can be downloaded only before the photo is changed.big
- File A big (640x640) user profile photo. The file can be downloaded only before the photo is changed.hasAnimation
- boolean True, if the photo has animated variant.
-
ProfilePhoto
- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-