io.swagger.client.model.Msg Maven / Gradle / Ivy
The newest version!
/*
* Easemob REST APIs
* Easemob Server REST API Swagger is designated to provide better documentation and thorough interfaces for testing. For more details about server implementation, request rate limitation, etc, please visit [Easemob Server Integration](http://docs.easemob.com/im/100serverintegration/10intro). **Note:** `org_ID` is the unique ID of the organization created when you first registered [Easemob console](https://console.easemob.com/). `app_name` is the unique app ID created when you new application in [Easemob console](https://console.easemob.com/). `Authorization token` is required for most API requests as part of requesting header in the format `Bearer ${token}`. You can obtain the token via [/{org_name}/{app_name}/token](https://docs.hyphenate.io/docs/server-overview#section-request-authentication-token).
*
* OpenAPI spec version: 1.0.2
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package io.swagger.client.model;
import java.util.Objects;
import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.client.model.UserName;
/**
* Msg
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2017-07-17T15:11:45.646-04:00")
public class Msg {
@SerializedName("target_type")
private String targetType = null;
@SerializedName("target")
private UserName target = null;
@SerializedName("msg")
private Object msg = null;
@SerializedName("from")
private String from = null;
@SerializedName("action")
private String action = null;
@SerializedName("ext")
private Object ext = null;
public Msg targetType(String targetType) {
this.targetType = targetType;
return this;
}
/**
* Get targetType
* @return targetType
**/
@ApiModelProperty(example = "null", value = "")
public String getTargetType() {
return targetType;
}
public void setTargetType(String targetType) {
this.targetType = targetType;
}
public Msg target(UserName target) {
this.target = target;
return this;
}
/**
* Get target
* @return target
**/
@ApiModelProperty(example = "null", value = "")
public UserName getTarget() {
return target;
}
public void setTarget(UserName target) {
this.target = target;
}
public Msg msg(Object msg) {
this.msg = msg;
return this;
}
/**
* Get msg
* @return msg
**/
@ApiModelProperty(example = "null", value = "")
public Object getMsg() {
return msg;
}
public void setMsg(Object msg) {
this.msg = msg;
}
public Msg from(String from) {
this.from = from;
return this;
}
/**
* Get from
* @return from
**/
@ApiModelProperty(example = "null", value = "")
public String getFrom() {
return from;
}
public void setFrom(String from) {
this.from = from;
}
public Msg action(String action) {
this.action = action;
return this;
}
/**
* Get action
* @return action
**/
@ApiModelProperty(example = "null", value = "")
public String getAction() {
return action;
}
public void setAction(String action) {
this.action = action;
}
public Msg ext(Object ext) {
this.ext = ext;
return this;
}
/**
* Get ext
* @return ext
**/
@ApiModelProperty(example = "null", value = "")
public Object getExt() {
return ext;
}
public void setExt(Object ext) {
this.ext = ext;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Msg msg = (Msg) o;
return Objects.equals(this.targetType, msg.targetType) &&
Objects.equals(this.target, msg.target) &&
Objects.equals(this.msg, msg.msg) &&
Objects.equals(this.from, msg.from) &&
Objects.equals(this.action, msg.action) &&
Objects.equals(this.ext, msg.ext);
}
@Override
public int hashCode() {
return Objects.hash(targetType, target, msg, from, action, ext);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Msg {\n");
sb.append(" targetType: ").append(toIndentedString(targetType)).append("\n");
sb.append(" target: ").append(toIndentedString(target)).append("\n");
sb.append(" msg: ").append(toIndentedString(msg)).append("\n");
sb.append(" from: ").append(toIndentedString(from)).append("\n");
sb.append(" action: ").append(toIndentedString(action)).append("\n");
sb.append(" ext: ").append(toIndentedString(ext)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy