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

com.github.messenger4j.send.message.quickreply.QuickReply Maven / Gradle / Ivy

// Generated by delombok at Tue May 07 22:31:27 CEST 2019
package com.github.messenger4j.send.message.quickreply;

/**
 * @author Max Grabenhorst
 * @since 1.0.0
 */
public abstract class QuickReply {
  private final ContentType contentType;

  QuickReply(ContentType contentType) {
    this.contentType = contentType;
  }

  public ContentType contentType() {
    return contentType;
  }

  /** @since 1.0.0 */
  public enum ContentType {
    TEXT,
    LOCATION,
    USER_EMAIL,
    USER_PHONE_NUMBER;
  }

  @java.lang.Override
  @java.lang.SuppressWarnings("all")
  public java.lang.String toString() {
    return "QuickReply(contentType=" + this.contentType + ")";
  }

  @java.lang.Override
  @java.lang.SuppressWarnings("all")
  public boolean equals(final java.lang.Object o) {
    if (o == this) return true;
    if (!(o instanceof QuickReply)) return false;
    final QuickReply other = (QuickReply) o;
    if (!other.canEqual((java.lang.Object) this)) return false;
    final java.lang.Object this$contentType = this.contentType;
    final java.lang.Object other$contentType = other.contentType;
    if (this$contentType == null
        ? other$contentType != null
        : !this$contentType.equals(other$contentType)) return false;
    return true;
  }

  @java.lang.SuppressWarnings("all")
  protected boolean canEqual(final java.lang.Object other) {
    return other instanceof QuickReply;
  }

  @java.lang.Override
  @java.lang.SuppressWarnings("all")
  public int hashCode() {
    final int PRIME = 59;
    int result = 1;
    final java.lang.Object $contentType = this.contentType;
    result = result * PRIME + ($contentType == null ? 43 : $contentType.hashCode());
    return result;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy