com.pengrad.telegrambot.model.business.BusinessMessageDeleted 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.Chat;
import java.util.Arrays;
import java.util.Objects;
public class BusinessMessageDeleted {
private String business_connection_id;
private Chat chat;
private Integer[] message_ids;
public String businessConnectionId() {
return business_connection_id;
}
public Chat chat() {
return chat;
}
public Integer[] messageIds() {
return message_ids;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (!(o instanceof BusinessMessageDeleted)) return false;
BusinessMessageDeleted that = (BusinessMessageDeleted) o;
return Objects.equals(business_connection_id, that.business_connection_id)
&& Objects.equals(chat, that.chat)
&& Arrays.equals(message_ids, that.message_ids);
}
@Override
public int hashCode() {
int result = Objects.hash(business_connection_id, chat);
result = 31 * result + Arrays.hashCode(message_ids);
return result;
}
@Override
public String toString() {
return "BusinessMessageDeleted{" +
"business_connection_id='" + business_connection_id + '\'' +
", chat=" + chat +
", message_ids=" + Arrays.toString(message_ids) +
'}';
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy