com.pengrad.telegrambot.model.business.BusinessConnection 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.business;
import com.pengrad.telegrambot.model.User;
import java.util.Objects;
public class BusinessConnection {
private String id;
private User user;
private Long user_chat_id;
private Integer date;
private Boolean can_reply;
private Boolean is_enabled;
public String id() {
return id;
}
public User user() {
return user;
}
public Long userChatId() {
return user_chat_id;
}
public Integer date() {
return date;
}
public Boolean canReply() {
return can_reply;
}
public Boolean isEnabled() {
return is_enabled;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (!(o instanceof BusinessConnection)) return false;
BusinessConnection that = (BusinessConnection) o;
return Objects.equals(id, that.id)
&& Objects.equals(user, that.user)
&& Objects.equals(user_chat_id, that.user_chat_id)
&& Objects.equals(date, that.date)
&& Objects.equals(can_reply, that.can_reply)
&& Objects.equals(is_enabled, that.is_enabled);
}
@Override
public int hashCode() {
return id != null ? id.hashCode() : 0;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy