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

com.pengrad.telegrambot.model.SentWebAppMessage Maven / Gradle / Ivy

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

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

/**
 * Mirco Ianese
 * 20 Apr 2022
 */
public class SentWebAppMessage implements Serializable {
    
    private final static long serialVersionUID = 0L;

    private String inline_message_id;

    public SentWebAppMessage() {
        this.inline_message_id = null;
    }

    public SentWebAppMessage(String inlineMessageId) {
        this.inline_message_id = inlineMessageId;
    }

    public String inlineMessageId() {
        return inline_message_id;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        SentWebAppMessage that = (SentWebAppMessage) o;
        return Objects.equals(inline_message_id, that.inline_message_id);
    }

    @Override
    public int hashCode() {
        return inline_message_id != null ? inline_message_id.hashCode() : 0;
    }

    @Override
    public String toString() {
        return "SentWebAppMessage{" +
                "inline_message_id='" + inline_message_id + '\'' +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy