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

com.pengrad.telegrambot.model.business.BusinessMessageDeleted Maven / Gradle / Ivy

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