org.symphonyoss.symphony.agent.model.ChannelSubscriberResponse Maven / Gradle / Ivy
The newest version!
/*
* Agent API
* This document refers to Symphony API calls to send and receive messages and content. They need the on-premise Agent installed to perform decryption/encryption of content. - sessionToken and keyManagerToken can be obtained by calling the authenticationAPI on the symphony back end and the key manager respectively. Refer to the methods described in authenticatorAPI.yaml. - Actions are defined to be atomic, ie will succeed in their entirety or fail and have changed nothing. - If it returns a 40X status then it will have sent no message to any stream even if a request to aome subset of the requested streams would have succeeded. - If this contract cannot be met for any reason then this is an error and the response code will be 50X. - MessageML is a markup language for messages. See reference here: https://developers.symphony.com/documentation/message_format_reference
*
* OpenAPI spec version: 1.50.0
*
*
* 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 org.symphonyoss.symphony.agent.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import org.symphonyoss.symphony.agent.model.ChannelSubscriber;
/**
* ChannelSubscriberResponse
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-03-13T13:44:51.568-04:00")
public class ChannelSubscriberResponse {
@JsonProperty("offset")
private Long offset = null;
@JsonProperty("hasMore")
private Boolean hasMore = null;
@JsonProperty("total")
private Integer total = null;
@JsonProperty("data")
private List data = null;
public ChannelSubscriberResponse offset(Long offset) {
this.offset = offset;
return this;
}
/**
* The number of subscribers skipped
* @return offset
**/
@ApiModelProperty(value = "The number of subscribers skipped")
public Long getOffset() {
return offset;
}
public void setOffset(Long offset) {
this.offset = offset;
}
public ChannelSubscriberResponse hasMore(Boolean hasMore) {
this.hasMore = hasMore;
return this;
}
/**
* True if there are more subscribers
* @return hasMore
**/
@ApiModelProperty(value = "True if there are more subscribers")
public Boolean getHasMore() {
return hasMore;
}
public void setHasMore(Boolean hasMore) {
this.hasMore = hasMore;
}
public ChannelSubscriberResponse total(Integer total) {
this.total = total;
return this;
}
/**
* The total number of subscribers
* @return total
**/
@ApiModelProperty(value = "The total number of subscribers")
public Integer getTotal() {
return total;
}
public void setTotal(Integer total) {
this.total = total;
}
public ChannelSubscriberResponse data(List data) {
this.data = data;
return this;
}
public ChannelSubscriberResponse addDataItem(ChannelSubscriber dataItem) {
if (this.data == null) {
this.data = new ArrayList();
}
this.data.add(dataItem);
return this;
}
/**
* Get data
* @return data
**/
@ApiModelProperty(value = "")
public List getData() {
return data;
}
public void setData(List data) {
this.data = data;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ChannelSubscriberResponse channelSubscriberResponse = (ChannelSubscriberResponse) o;
return Objects.equals(this.offset, channelSubscriberResponse.offset) &&
Objects.equals(this.hasMore, channelSubscriberResponse.hasMore) &&
Objects.equals(this.total, channelSubscriberResponse.total) &&
Objects.equals(this.data, channelSubscriberResponse.data);
}
@Override
public int hashCode() {
return Objects.hash(offset, hasMore, total, data);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ChannelSubscriberResponse {\n");
sb.append(" offset: ").append(toIndentedString(offset)).append("\n");
sb.append(" hasMore: ").append(toIndentedString(hasMore)).append("\n");
sb.append(" total: ").append(toIndentedString(total)).append("\n");
sb.append(" data: ").append(toIndentedString(data)).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 ");
}
}