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

com.pengrad.telegrambot.model.chatboost.source.ChatBoostSource Maven / Gradle / Ivy

There is a newer version: 7.2.1
Show newest version
package com.pengrad.telegrambot.model.chatboost.source;

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

import com.pengrad.telegrambot.model.User;


public class ChatBoostSource implements Serializable {
    private final static long serialVersionUID = 0L;

    protected String source;
    protected User user;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        ChatBoostSource that = (ChatBoostSource) o;
        return Objects.equals(source, that.source)
                && Objects.equals(user, that.user);
    }

    @Override
    public int hashCode() {
        return Objects.hash(source, user);
    }

    @Override
    public String toString() {
        return "ChatBoostSource{" +
                "source='" + source + "'," +
                "user='" + user + "'" +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy