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

com.pengrad.telegrambot.model.giveaway.GiveawayCompleted Maven / Gradle / Ivy

There is a newer version: 7.11.0
Show newest version
package com.pengrad.telegrambot.model.giveaway;

import com.pengrad.telegrambot.model.Message;

import java.io.Serializable;
import java.util.Objects;

public class GiveawayCompleted implements Serializable {

    private final static long serialVersionUID = 0L;

    private Integer winner_count;
    private Integer unclaimed_prize_count;
    private Message giveaway_message;


    public Integer winnerCount() {
        return winner_count;
    }

    public Integer unclaimedPrizeCount() {
        return unclaimed_prize_count;
    }

    public Message giveawayMessage() {
        return giveaway_message;
    }


    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        GiveawayCompleted that = (GiveawayCompleted) o;
        return Objects.equals(winner_count, that.winner_count)
                && Objects.equals(unclaimed_prize_count, that.unclaimed_prize_count)
                && Objects.equals(giveaway_message, that.giveaway_message);
    }

    @Override
    public int hashCode() {
        return Objects.hash(winner_count, unclaimed_prize_count, giveaway_message);
    }

    @Override
    public String toString() {
        return "GiveawayCompleted{" +
                "winner_count='" + winner_count + "'," +
                "unclaimed_prize_count='" + unclaimed_prize_count + "'," +
                "giveaway_message='" + giveaway_message + "'" +
                '}';
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy