com.pengrad.telegrambot.model.UserProfilePhotos Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-telegram-bot-api Show documentation
Show all versions of java-telegram-bot-api Show documentation
Java API for Telegram Bot API
package com.pengrad.telegrambot.model;
import java.io.Serializable;
import java.util.Arrays;
/**
* stas
* 8/5/15.
*/
public class UserProfilePhotos implements Serializable {
private final static long serialVersionUID = 0L;
private Integer total_count;
private PhotoSize[][] photos;
public Integer totalCount() {
return total_count;
}
public PhotoSize[][] photos() {
return photos;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
UserProfilePhotos that = (UserProfilePhotos) o;
if (total_count != null ? !total_count.equals(that.total_count) : that.total_count != null) return false;
return Arrays.deepEquals(photos, that.photos);
}
@Override
public int hashCode() {
int result = total_count != null ? total_count.hashCode() : 0;
result = 31 * result + Arrays.deepHashCode(photos);
return result;
}
@Override
public String toString() {
return "UserProfilePhotos{" +
"total_count=" + total_count +
", photos=" + Arrays.deepToString(photos) +
'}';
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy