com.pubnub.api.models.consumer.history.PNHistoryResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pubnub Show documentation
Show all versions of pubnub Show documentation
PubNub is a cross-platform client-to-client (1:1 and 1:many) push service in the cloud, capable of
broadcasting real-time messages to millions of web and mobile clients simultaneously, in less than a quarter
second!
The newest version!
// Generated by delombok at Fri Jun 30 11:22:25 PDT 2017
package com.pubnub.api.models.consumer.history;
import java.util.List;
public class PNHistoryResult {
private List messages;
private Long startTimetoken;
private Long endTimetoken;
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
PNHistoryResult(final List messages, final Long startTimetoken, final Long endTimetoken) {
this.messages = messages;
this.startTimetoken = startTimetoken;
this.endTimetoken = endTimetoken;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public static class PNHistoryResultBuilder {
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
private List messages;
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
private Long startTimetoken;
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
private Long endTimetoken;
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
PNHistoryResultBuilder() {
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public PNHistoryResultBuilder messages(final List messages) {
this.messages = messages;
return this;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public PNHistoryResultBuilder startTimetoken(final Long startTimetoken) {
this.startTimetoken = startTimetoken;
return this;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public PNHistoryResultBuilder endTimetoken(final Long endTimetoken) {
this.endTimetoken = endTimetoken;
return this;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public PNHistoryResult build() {
return new PNHistoryResult(messages, startTimetoken, endTimetoken);
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "PNHistoryResult.PNHistoryResultBuilder(messages=" + this.messages + ", startTimetoken=" + this.startTimetoken + ", endTimetoken=" + this.endTimetoken + ")";
}
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public static PNHistoryResultBuilder builder() {
return new PNHistoryResultBuilder();
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public List getMessages() {
return this.messages;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public Long getStartTimetoken() {
return this.startTimetoken;
}
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public Long getEndTimetoken() {
return this.endTimetoken;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "PNHistoryResult(messages=" + this.getMessages() + ", startTimetoken=" + this.getStartTimetoken() + ", endTimetoken=" + this.getEndTimetoken() + ")";
}
}