All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.vk.api.sdk.objects.messages.responses.GetReactedPeersResponse Maven / Gradle / Ivy

Go to download

Java library for VK API interaction, includes OAuth 2.0 authorization and API methods.

There is a newer version: 1.0.16
Show newest version
// Autogenerated from vk-api-schema. Please don't edit it manually.
package com.vk.api.sdk.objects.messages.responses;

import com.google.gson.Gson;
import com.google.gson.annotations.SerializedName;
import com.vk.api.sdk.objects.Validable;
import com.vk.api.sdk.objects.annotations.Required;
import com.vk.api.sdk.objects.groups.GroupFull;
import com.vk.api.sdk.objects.messages.ReactionCounterResponseItem;
import com.vk.api.sdk.objects.messages.ReactionResponseItem;
import com.vk.api.sdk.objects.users.UserFull;
import java.util.List;
import java.util.Objects;

/**
 * GetReactedPeersResponse object
 */
public class GetReactedPeersResponse implements Validable {
    /**
     * Total number
     */
    @SerializedName("count")
    @Required
    private Integer count;

    @SerializedName("counters")
    @Required
    private List counters;

    @SerializedName("groups")
    private List groups;

    @SerializedName("profiles")
    private List profiles;

    @SerializedName("reactions")
    @Required
    private List reactions;

    public Integer getCount() {
        return count;
    }

    public GetReactedPeersResponse setCount(Integer count) {
        this.count = count;
        return this;
    }

    public List getCounters() {
        return counters;
    }

    public GetReactedPeersResponse setCounters(List counters) {
        this.counters = counters;
        return this;
    }

    public List getGroups() {
        return groups;
    }

    public GetReactedPeersResponse setGroups(List groups) {
        this.groups = groups;
        return this;
    }

    public List getProfiles() {
        return profiles;
    }

    public GetReactedPeersResponse setProfiles(List profiles) {
        this.profiles = profiles;
        return this;
    }

    public List getReactions() {
        return reactions;
    }

    public GetReactedPeersResponse setReactions(List reactions) {
        this.reactions = reactions;
        return this;
    }

    @Override
    public int hashCode() {
        return Objects.hash(counters, count, profiles, groups, reactions);
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        GetReactedPeersResponse getReactedPeersResponse = (GetReactedPeersResponse) o;
        return Objects.equals(counters, getReactedPeersResponse.counters) &&
                Objects.equals(count, getReactedPeersResponse.count) &&
                Objects.equals(profiles, getReactedPeersResponse.profiles) &&
                Objects.equals(groups, getReactedPeersResponse.groups) &&
                Objects.equals(reactions, getReactedPeersResponse.reactions);
    }

    @Override
    public String toString() {
        final Gson gson = new Gson();
        return gson.toJson(this);
    }

    public String toPrettyString() {
        final StringBuilder sb = new StringBuilder("GetReactedPeersResponse{");
        sb.append("counters=").append(counters);
        sb.append(", count=").append(count);
        sb.append(", profiles=").append(profiles);
        sb.append(", groups=").append(groups);
        sb.append(", reactions=").append(reactions);
        sb.append('}');
        return sb.toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy