com.pengrad.telegrambot.model.paidmedia.PaidMediaInfo 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.paidmedia;
import java.io.Serializable;
import java.util.Arrays;
import java.util.Objects;
public class PaidMediaInfo implements Serializable {
private final static long serialVersionUID = 0L;
private Integer star_count;
private PaidMedia[] paid_media;
public Integer starCount() {
return star_count;
}
public PaidMedia[] paidMedia() {
return paid_media;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
PaidMediaInfo that = (PaidMediaInfo) o;
return Objects.equals(star_count, that.star_count) &&
Arrays.equals(paid_media, that.paid_media);
}
@Override
public int hashCode() {
return Objects.hash(star_count, paid_media);
}
@Override
public String toString() {
return "PaidMediaInfo{" +
"star_count='" + star_count + "'," +
"paid_media='" + Arrays.toString(paid_media) + "'" +
'}';
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy