com.github.messenger4j.send.message.template.Template Maven / Gradle / Ivy
// Generated by delombok at Tue May 07 22:31:27 CEST 2019
package com.github.messenger4j.send.message.template;
/**
* @author Max Grabenhorst
* @since 1.0.0
*/
public abstract class Template {
private final Type templateType;
Template(Type templateType) {
this.templateType = templateType;
}
public Type templateType() {
return templateType;
}
/** @since 1.0.0 */
public enum Type {
GENERIC,
RECEIPT,
BUTTON,
LIST,
OPEN_GRAPH;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public java.lang.String toString() {
return "Template(templateType=" + this.templateType + ")";
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof Template)) return false;
final Template other = (Template) o;
if (!other.canEqual((java.lang.Object) this)) return false;
final java.lang.Object this$templateType = this.templateType;
final java.lang.Object other$templateType = other.templateType;
if (this$templateType == null
? other$templateType != null
: !this$templateType.equals(other$templateType)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof Template;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public int hashCode() {
final int PRIME = 59;
int result = 1;
final java.lang.Object $templateType = this.templateType;
result = result * PRIME + ($templateType == null ? 43 : $templateType.hashCode());
return result;
}
}