All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.antonioaltieri.telegram.botapi.types.UserProfilePhotos Maven / Gradle / Ivy

package com.antonioaltieri.telegram.botapi.types;

import com.antonioaltieri.telegram.botapi.types.PhotoSize;
import com.google.gson.annotations.SerializedName;

import java.util.List;

/**
 * This object represent a user's profile pictures.
 *
 * @see https://core.telegram.org/bots/api#userprofilephotos
 */
public class UserProfilePhotos {

    @SerializedName("total_count")
    private int totalCount;

    @SerializedName("photos")
    private List> photos;

    /**
     * @return Total number of profile pictures the target user has
     */
    public int getTotalCount() {
        return totalCount;
    }

    /**
     * @return Requested profile pictures (in up to 4 sizes each)
     */
    public List> getPhotos() {
        return photos;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("UserProfilePhotos{");
        sb.append("totalCount=").append(totalCount);
        sb.append(", photos=").append(photos);
        sb.append('}');
        return sb.toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy