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

com.pengrad.telegrambot.model.paidmedia.PaidMediaInfo Maven / Gradle / Ivy

There is a newer version: 7.11.0
Show newest version
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