com.vk.api.sdk.objects.callback.longpoll.responses.GetLongPollEventsResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk Show documentation
Show all versions of sdk Show documentation
Java library for VK API interaction, includes OAuth 2.0 authorization and API methods.
The newest version!
package com.vk.api.sdk.objects.callback.longpoll.responses;
import com.google.gson.JsonObject;
import com.google.gson.annotations.SerializedName;
import java.util.List;
import java.util.Objects;
public class GetLongPollEventsResponse {
@SerializedName("ts")
private String ts;
@SerializedName("updates")
private List updates;
public String getTs() {
return ts;
}
public List getUpdates() {
return updates;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
GetLongPollEventsResponse that = (GetLongPollEventsResponse) o;
return Objects.equals(ts, that.ts) &&
Objects.equals(updates, that.updates);
}
@Override
public int hashCode() {
return Objects.hash(ts, updates);
}
@Override
public String toString() {
final StringBuilder sb = new StringBuilder("GetLongPollEventsResponse{");
sb.append("ts=").append(ts);
sb.append(", updates=").append(updates);
sb.append('}');
return sb.toString();
}
}