com.textmagic.sdk.model.GetMessagingCountersResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of textmagic-java-sdk Show documentation
Show all versions of textmagic-java-sdk Show documentation
Java wrapper library for Textmagic services
/*
* TextMagic API
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 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 com.textmagic.sdk.model;
import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
/**
* GetMessagingCountersResponse
*/
public class GetMessagingCountersResponse {
@SerializedName("contacts")
private Integer contacts = null;
@SerializedName("sent")
private Integer sent = null;
@SerializedName("received")
private Integer received = null;
public GetMessagingCountersResponse contacts(Integer contacts) {
this.contacts = contacts;
return this;
}
/**
* Total contacts amount.
* @return contacts
**/
@ApiModelProperty(example = "10", required = true, value = "Total contacts amount.")
public Integer getContacts() {
return contacts;
}
public void setContacts(Integer contacts) {
this.contacts = contacts;
}
public GetMessagingCountersResponse sent(Integer sent) {
this.sent = sent;
return this;
}
/**
* Total sent messages amount.
* @return sent
**/
@ApiModelProperty(example = "10", required = true, value = "Total sent messages amount.")
public Integer getSent() {
return sent;
}
public void setSent(Integer sent) {
this.sent = sent;
}
public GetMessagingCountersResponse received(Integer received) {
this.received = received;
return this;
}
/**
* Total received messages amount.
* @return received
**/
@ApiModelProperty(example = "10", required = true, value = "Total received messages amount.")
public Integer getReceived() {
return received;
}
public void setReceived(Integer received) {
this.received = received;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
GetMessagingCountersResponse getMessagingCountersResponse = (GetMessagingCountersResponse) o;
return Objects.equals(this.contacts, getMessagingCountersResponse.contacts) &&
Objects.equals(this.sent, getMessagingCountersResponse.sent) &&
Objects.equals(this.received, getMessagingCountersResponse.received);
}
@Override
public int hashCode() {
return Objects.hash(contacts, sent, received);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class GetMessagingCountersResponse {\n");
sb.append(" contacts: ").append(toIndentedString(contacts)).append("\n");
sb.append(" sent: ").append(toIndentedString(sent)).append("\n");
sb.append(" received: ").append(toIndentedString(received)).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 ");
}
}