com.fireflysource.wechat.enterprise.group.bot.model.GroupBotMessageResult Maven / Gradle / Ivy
package com.fireflysource.wechat.enterprise.group.bot.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
/**
* @author Pengtao Qiu
*/
public class GroupBotMessageResult {
@JsonProperty("errcode")
private int errorCode;
@JsonProperty("errmsg")
private String errorMessage;
public GroupBotMessageResult() {
}
public GroupBotMessageResult(int errorCode, String errorMessage) {
this.errorCode = errorCode;
this.errorMessage = errorMessage;
}
public int getErrorCode() {
return errorCode;
}
public void setErrorCode(int errorCode) {
this.errorCode = errorCode;
}
public String getErrorMessage() {
return errorMessage;
}
public void setErrorMessage(String errorMessage) {
this.errorMessage = errorMessage;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
GroupBotMessageResult that = (GroupBotMessageResult) o;
return errorCode == that.errorCode;
}
@Override
public int hashCode() {
return Objects.hash(errorCode);
}
@Override
public String toString() {
return "GroupBotMessageResult{" +
"errorCode=" + errorCode +
", errorMessage='" + errorMessage + '\'' +
'}';
}
}