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

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

Go to download

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

The 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.ChatRestrictions;
import com.vk.api.sdk.objects.messages.ConversationMember;
import com.vk.api.sdk.objects.users.UserFull;
import java.util.List;
import java.util.Objects;

/**
 * GetConversationMembersResponse object
 */
public class GetConversationMembersResponse implements Validable {
    @SerializedName("chat_restrictions")
    private ChatRestrictions chatRestrictions;

    /**
     * Chat members count
     */
    @SerializedName("count")
    @Required
    private Integer count;

    @SerializedName("groups")
    private List groups;

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

    @SerializedName("profiles")
    private List profiles;

    public ChatRestrictions getChatRestrictions() {
        return chatRestrictions;
    }

    public GetConversationMembersResponse setChatRestrictions(ChatRestrictions chatRestrictions) {
        this.chatRestrictions = chatRestrictions;
        return this;
    }

    public Integer getCount() {
        return count;
    }

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

    public List getGroups() {
        return groups;
    }

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

    public List getItems() {
        return items;
    }

    public GetConversationMembersResponse setItems(List items) {
        this.items = items;
        return this;
    }

    public List getProfiles() {
        return profiles;
    }

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

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

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        GetConversationMembersResponse getConversationMembersResponse = (GetConversationMembersResponse) o;
        return Objects.equals(count, getConversationMembersResponse.count) &&
                Objects.equals(profiles, getConversationMembersResponse.profiles) &&
                Objects.equals(groups, getConversationMembersResponse.groups) &&
                Objects.equals(chatRestrictions, getConversationMembersResponse.chatRestrictions) &&
                Objects.equals(items, getConversationMembersResponse.items);
    }

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

    public String toPrettyString() {
        final StringBuilder sb = new StringBuilder("GetConversationMembersResponse{");
        sb.append("count=").append(count);
        sb.append(", profiles=").append(profiles);
        sb.append(", groups=").append(groups);
        sb.append(", chatRestrictions=").append(chatRestrictions);
        sb.append(", items=").append(items);
        sb.append('}');
        return sb.toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy