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

com.vk.api.sdk.objects.groups.responses.GetSettingsResponse 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.groups.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.base.BoolInt;
import com.vk.api.sdk.objects.groups.GroupAccess;
import com.vk.api.sdk.objects.groups.GroupAgeLimits;
import com.vk.api.sdk.objects.groups.GroupAudio;
import com.vk.api.sdk.objects.groups.GroupDocs;
import com.vk.api.sdk.objects.groups.GroupFullSection;
import com.vk.api.sdk.objects.groups.GroupPhotos;
import com.vk.api.sdk.objects.groups.GroupPublicCategoryList;
import com.vk.api.sdk.objects.groups.GroupSuggestedPrivacy;
import com.vk.api.sdk.objects.groups.GroupTopics;
import com.vk.api.sdk.objects.groups.GroupVideo;
import com.vk.api.sdk.objects.groups.GroupWall;
import com.vk.api.sdk.objects.groups.GroupWiki;
import com.vk.api.sdk.objects.groups.SectionsListItem;
import com.vk.api.sdk.objects.groups.SettingsTwitter;
import com.vk.api.sdk.objects.groups.SubjectItem;
import java.net.URI;
import java.util.List;
import java.util.Objects;

/**
 * GetSettingsResponse object
 */
public class GetSettingsResponse implements Validable {
    /**
     * Community access settings
     */
    @SerializedName("access")
    private GroupAccess access;

    /**
     * Community's page domain
     */
    @SerializedName("address")
    private String address;

    @SerializedName("addresses")
    private Boolean addresses;

    @SerializedName("age_limits")
    private GroupAgeLimits ageLimits;

    /**
     * Articles settings
     */
    @SerializedName("articles")
    @Required
    private Integer articles;

    /**
     * Audio settings
     */
    @SerializedName("audio")
    @Required
    private GroupAudio audio;

    /**
     * If this setting is enabled then users can add your community to a chat
     */
    @SerializedName("bots_add_to_chat")
    private BoolInt botsAddToChat;

    /**
     * By enabling bot abilities, you can send users messages with a customized keyboard attached as well as use other promotional abilities
     */
    @SerializedName("bots_capabilities")
    private BoolInt botsCapabilities;

    /**
     * If this setting is enabled, users will see a Start button when they start a chat with your community for the first time
     */
    @SerializedName("bots_start_button")
    private BoolInt botsStartButton;

    /**
     * City id of group
     */
    @SerializedName("city_id")
    @Required
    private Integer cityId;

    /**
     * City name of group
     */
    @SerializedName("city_name")
    @Required
    private String cityName;

    @SerializedName("contacts")
    private BoolInt contacts;

    /**
     * Country id of group
     */
    @SerializedName("country_id")
    @Required
    private Integer countryId;

    /**
     * Country name of group
     */
    @SerializedName("country_name")
    @Required
    private String countryName;

    /**
     * Community description
     */
    @SerializedName("description")
    @Required
    private String description;

    /**
     * Information whether the replies from groups is disabled
     */
    @SerializedName("disable_replies_from_groups")
    @Required
    private BoolInt disableRepliesFromGroups;

    /**
     * Docs settings
     */
    @SerializedName("docs")
    @Required
    private GroupDocs docs;

    /**
     * Community email
     */
    @SerializedName("email")
    private String email;

    @SerializedName("event_group_id")
    private Integer eventGroupId;

    @SerializedName("events")
    private BoolInt events;

    /**
     * Finish date in Unix-time format
     */
    @SerializedName("finish_date")
    private Integer finishDate;

    @SerializedName("links")
    private BoolInt links;

    @SerializedName("main_section")
    private GroupFullSection mainSection;

    /**
     * Information whether the obscene filter is enabled
     */
    @SerializedName("obscene_filter")
    @Required
    private BoolInt obsceneFilter;

    /**
     * Information whether the stop words filter is enabled
     */
    @SerializedName("obscene_stopwords")
    @Required
    private BoolInt obsceneStopwords;

    /**
     * The list of stop words
     */
    @SerializedName("obscene_words")
    @Required
    private List obsceneWords;

    /**
     * Community phone
     */
    @SerializedName("phone")
    private String phone;

    /**
     * Photos settings
     */
    @SerializedName("photos")
    @Required
    private GroupPhotos photos;

    /**
     * Information about the group category
     */
    @SerializedName("public_category")
    private Integer publicCategory;

    @SerializedName("public_category_list")
    private List publicCategoryList;

    @SerializedName("public_date")
    private String publicDate;

    @SerializedName("public_date_label")
    private String publicDateLabel;

    /**
     * Information about the group subcategory
     */
    @SerializedName("public_subcategory")
    private Integer publicSubcategory;

    /**
     * Photo suggests setting
     */
    @SerializedName("recognize_photo")
    private Integer recognizePhoto;

    /**
     * URL of the RSS feed
     */
    @SerializedName("rss")
    private URI rss;

    @SerializedName("secondary_section")
    private GroupFullSection secondarySection;

    @SerializedName("sections_list")
    private List sectionsList;

    /**
     * Start date
     */
    @SerializedName("start_date")
    private Integer startDate;

    /**
     * Community subject ID
     */
    @SerializedName("subject")
    private Integer subject;

    @SerializedName("subject_list")
    private List subjectList;

    @SerializedName("suggested_privacy")
    private GroupSuggestedPrivacy suggestedPrivacy;

    /**
     * Community title
     */
    @SerializedName("title")
    @Required
    private String title;

    /**
     * Topics settings
     */
    @SerializedName("topics")
    @Required
    private GroupTopics topics;

    /**
     * Information whether the toxic filter is enabled
     */
    @SerializedName("toxic_filter")
    @Required
    private BoolInt toxicFilter;

    @SerializedName("twitter")
    private SettingsTwitter twitter;

    /**
     * Video settings
     */
    @SerializedName("video")
    @Required
    private GroupVideo video;

    /**
     * Wall settings
     */
    @SerializedName("wall")
    @Required
    private GroupWall wall;

    /**
     * Community website
     */
    @SerializedName("website")
    private String website;

    /**
     * Wiki settings
     */
    @SerializedName("wiki")
    @Required
    private GroupWiki wiki;

    public GroupAccess getAccess() {
        return access;
    }

    public GetSettingsResponse setAccess(GroupAccess access) {
        this.access = access;
        return this;
    }

    public String getAddress() {
        return address;
    }

    public GetSettingsResponse setAddress(String address) {
        this.address = address;
        return this;
    }

    public Boolean getAddresses() {
        return addresses;
    }

    public GetSettingsResponse setAddresses(Boolean addresses) {
        this.addresses = addresses;
        return this;
    }

    public GroupAgeLimits getAgeLimits() {
        return ageLimits;
    }

    public GetSettingsResponse setAgeLimits(GroupAgeLimits ageLimits) {
        this.ageLimits = ageLimits;
        return this;
    }

    public Integer getArticles() {
        return articles;
    }

    public GetSettingsResponse setArticles(Integer articles) {
        this.articles = articles;
        return this;
    }

    public GroupAudio getAudio() {
        return audio;
    }

    public GetSettingsResponse setAudio(GroupAudio audio) {
        this.audio = audio;
        return this;
    }

    public boolean isBotsAddToChat() {
        return botsAddToChat == BoolInt.YES;
    }

    public BoolInt getBotsAddToChat() {
        return botsAddToChat;
    }

    public boolean isBotsCapabilities() {
        return botsCapabilities == BoolInt.YES;
    }

    public BoolInt getBotsCapabilities() {
        return botsCapabilities;
    }

    public boolean isBotsStartButton() {
        return botsStartButton == BoolInt.YES;
    }

    public BoolInt getBotsStartButton() {
        return botsStartButton;
    }

    public Integer getCityId() {
        return cityId;
    }

    public GetSettingsResponse setCityId(Integer cityId) {
        this.cityId = cityId;
        return this;
    }

    public String getCityName() {
        return cityName;
    }

    public GetSettingsResponse setCityName(String cityName) {
        this.cityName = cityName;
        return this;
    }

    public boolean isContacts() {
        return contacts == BoolInt.YES;
    }

    public BoolInt getContacts() {
        return contacts;
    }

    public Integer getCountryId() {
        return countryId;
    }

    public GetSettingsResponse setCountryId(Integer countryId) {
        this.countryId = countryId;
        return this;
    }

    public String getCountryName() {
        return countryName;
    }

    public GetSettingsResponse setCountryName(String countryName) {
        this.countryName = countryName;
        return this;
    }

    public String getDescription() {
        return description;
    }

    public GetSettingsResponse setDescription(String description) {
        this.description = description;
        return this;
    }

    public boolean isDisableRepliesFromGroups() {
        return disableRepliesFromGroups == BoolInt.YES;
    }

    public BoolInt getDisableRepliesFromGroups() {
        return disableRepliesFromGroups;
    }

    public GroupDocs getDocs() {
        return docs;
    }

    public GetSettingsResponse setDocs(GroupDocs docs) {
        this.docs = docs;
        return this;
    }

    public String getEmail() {
        return email;
    }

    public GetSettingsResponse setEmail(String email) {
        this.email = email;
        return this;
    }

    public Integer getEventGroupId() {
        return eventGroupId;
    }

    public GetSettingsResponse setEventGroupId(Integer eventGroupId) {
        this.eventGroupId = eventGroupId;
        return this;
    }

    public boolean isEvents() {
        return events == BoolInt.YES;
    }

    public BoolInt getEvents() {
        return events;
    }

    public Integer getFinishDate() {
        return finishDate;
    }

    public GetSettingsResponse setFinishDate(Integer finishDate) {
        this.finishDate = finishDate;
        return this;
    }

    public boolean isLinks() {
        return links == BoolInt.YES;
    }

    public BoolInt getLinks() {
        return links;
    }

    public GroupFullSection getMainSection() {
        return mainSection;
    }

    public GetSettingsResponse setMainSection(GroupFullSection mainSection) {
        this.mainSection = mainSection;
        return this;
    }

    public boolean isObsceneFilter() {
        return obsceneFilter == BoolInt.YES;
    }

    public BoolInt getObsceneFilter() {
        return obsceneFilter;
    }

    public boolean isObsceneStopwords() {
        return obsceneStopwords == BoolInt.YES;
    }

    public BoolInt getObsceneStopwords() {
        return obsceneStopwords;
    }

    public List getObsceneWords() {
        return obsceneWords;
    }

    public GetSettingsResponse setObsceneWords(List obsceneWords) {
        this.obsceneWords = obsceneWords;
        return this;
    }

    public String getPhone() {
        return phone;
    }

    public GetSettingsResponse setPhone(String phone) {
        this.phone = phone;
        return this;
    }

    public GroupPhotos getPhotos() {
        return photos;
    }

    public GetSettingsResponse setPhotos(GroupPhotos photos) {
        this.photos = photos;
        return this;
    }

    public Integer getPublicCategory() {
        return publicCategory;
    }

    public GetSettingsResponse setPublicCategory(Integer publicCategory) {
        this.publicCategory = publicCategory;
        return this;
    }

    public List getPublicCategoryList() {
        return publicCategoryList;
    }

    public GetSettingsResponse setPublicCategoryList(
            List publicCategoryList) {
        this.publicCategoryList = publicCategoryList;
        return this;
    }

    public String getPublicDate() {
        return publicDate;
    }

    public GetSettingsResponse setPublicDate(String publicDate) {
        this.publicDate = publicDate;
        return this;
    }

    public String getPublicDateLabel() {
        return publicDateLabel;
    }

    public GetSettingsResponse setPublicDateLabel(String publicDateLabel) {
        this.publicDateLabel = publicDateLabel;
        return this;
    }

    public Integer getPublicSubcategory() {
        return publicSubcategory;
    }

    public GetSettingsResponse setPublicSubcategory(Integer publicSubcategory) {
        this.publicSubcategory = publicSubcategory;
        return this;
    }

    public Integer getRecognizePhoto() {
        return recognizePhoto;
    }

    public GetSettingsResponse setRecognizePhoto(Integer recognizePhoto) {
        this.recognizePhoto = recognizePhoto;
        return this;
    }

    public URI getRss() {
        return rss;
    }

    public GetSettingsResponse setRss(URI rss) {
        this.rss = rss;
        return this;
    }

    public GroupFullSection getSecondarySection() {
        return secondarySection;
    }

    public GetSettingsResponse setSecondarySection(GroupFullSection secondarySection) {
        this.secondarySection = secondarySection;
        return this;
    }

    public List getSectionsList() {
        return sectionsList;
    }

    public GetSettingsResponse setSectionsList(List sectionsList) {
        this.sectionsList = sectionsList;
        return this;
    }

    public Integer getStartDate() {
        return startDate;
    }

    public GetSettingsResponse setStartDate(Integer startDate) {
        this.startDate = startDate;
        return this;
    }

    public Integer getSubject() {
        return subject;
    }

    public GetSettingsResponse setSubject(Integer subject) {
        this.subject = subject;
        return this;
    }

    public List getSubjectList() {
        return subjectList;
    }

    public GetSettingsResponse setSubjectList(List subjectList) {
        this.subjectList = subjectList;
        return this;
    }

    public GroupSuggestedPrivacy getSuggestedPrivacy() {
        return suggestedPrivacy;
    }

    public GetSettingsResponse setSuggestedPrivacy(GroupSuggestedPrivacy suggestedPrivacy) {
        this.suggestedPrivacy = suggestedPrivacy;
        return this;
    }

    public String getTitle() {
        return title;
    }

    public GetSettingsResponse setTitle(String title) {
        this.title = title;
        return this;
    }

    public GroupTopics getTopics() {
        return topics;
    }

    public GetSettingsResponse setTopics(GroupTopics topics) {
        this.topics = topics;
        return this;
    }

    public boolean isToxicFilter() {
        return toxicFilter == BoolInt.YES;
    }

    public BoolInt getToxicFilter() {
        return toxicFilter;
    }

    public SettingsTwitter getTwitter() {
        return twitter;
    }

    public GetSettingsResponse setTwitter(SettingsTwitter twitter) {
        this.twitter = twitter;
        return this;
    }

    public GroupVideo getVideo() {
        return video;
    }

    public GetSettingsResponse setVideo(GroupVideo video) {
        this.video = video;
        return this;
    }

    public GroupWall getWall() {
        return wall;
    }

    public GetSettingsResponse setWall(GroupWall wall) {
        this.wall = wall;
        return this;
    }

    public String getWebsite() {
        return website;
    }

    public GetSettingsResponse setWebsite(String website) {
        this.website = website;
        return this;
    }

    public GroupWiki getWiki() {
        return wiki;
    }

    public GetSettingsResponse setWiki(GroupWiki wiki) {
        this.wiki = wiki;
        return this;
    }

    @Override
    public int hashCode() {
        return Objects.hash(addresses, obsceneStopwords, subject, wiki, obsceneFilter, cityId, photos, recognizePhoto, twitter, docs, botsCapabilities, botsStartButton, links, events, eventGroupId, sectionsList, suggestedPrivacy, obsceneWords, phone, countryName, startDate, mainSection, access, description, video, publicDate, title, countryId, publicDateLabel, toxicFilter, rss, cityName, audio, publicCategory, email, subjectList, website, address, topics, publicCategoryList, secondarySection, botsAddToChat, ageLimits, disableRepliesFromGroups, publicSubcategory, finishDate, articles, wall, contacts);
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        GetSettingsResponse getSettingsResponse = (GetSettingsResponse) o;
        return Objects.equals(addresses, getSettingsResponse.addresses) &&
                Objects.equals(publicCategory, getSettingsResponse.publicCategory) &&
                Objects.equals(publicSubcategory, getSettingsResponse.publicSubcategory) &&
                Objects.equals(subject, getSettingsResponse.subject) &&
                Objects.equals(wiki, getSettingsResponse.wiki) &&
                Objects.equals(botsStartButton, getSettingsResponse.botsStartButton) &&
                Objects.equals(photos, getSettingsResponse.photos) &&
                Objects.equals(mainSection, getSettingsResponse.mainSection) &&
                Objects.equals(obsceneStopwords, getSettingsResponse.obsceneStopwords) &&
                Objects.equals(twitter, getSettingsResponse.twitter) &&
                Objects.equals(docs, getSettingsResponse.docs) &&
                Objects.equals(finishDate, getSettingsResponse.finishDate) &&
                Objects.equals(links, getSettingsResponse.links) &&
                Objects.equals(obsceneFilter, getSettingsResponse.obsceneFilter) &&
                Objects.equals(events, getSettingsResponse.events) &&
                Objects.equals(publicDateLabel, getSettingsResponse.publicDateLabel) &&
                Objects.equals(publicCategoryList, getSettingsResponse.publicCategoryList) &&
                Objects.equals(ageLimits, getSettingsResponse.ageLimits) &&
                Objects.equals(toxicFilter, getSettingsResponse.toxicFilter) &&
                Objects.equals(phone, getSettingsResponse.phone) &&
                Objects.equals(countryId, getSettingsResponse.countryId) &&
                Objects.equals(cityId, getSettingsResponse.cityId) &&
                Objects.equals(botsAddToChat, getSettingsResponse.botsAddToChat) &&
                Objects.equals(botsCapabilities, getSettingsResponse.botsCapabilities) &&
                Objects.equals(access, getSettingsResponse.access) &&
                Objects.equals(description, getSettingsResponse.description) &&
                Objects.equals(video, getSettingsResponse.video) &&
                Objects.equals(title, getSettingsResponse.title) &&
                Objects.equals(suggestedPrivacy, getSettingsResponse.suggestedPrivacy) &&
                Objects.equals(cityName, getSettingsResponse.cityName) &&
                Objects.equals(rss, getSettingsResponse.rss) &&
                Objects.equals(subjectList, getSettingsResponse.subjectList) &&
                Objects.equals(countryName, getSettingsResponse.countryName) &&
                Objects.equals(audio, getSettingsResponse.audio) &&
                Objects.equals(publicDate, getSettingsResponse.publicDate) &&
                Objects.equals(email, getSettingsResponse.email) &&
                Objects.equals(secondarySection, getSettingsResponse.secondarySection) &&
                Objects.equals(startDate, getSettingsResponse.startDate) &&
                Objects.equals(website, getSettingsResponse.website) &&
                Objects.equals(address, getSettingsResponse.address) &&
                Objects.equals(topics, getSettingsResponse.topics) &&
                Objects.equals(recognizePhoto, getSettingsResponse.recognizePhoto) &&
                Objects.equals(obsceneWords, getSettingsResponse.obsceneWords) &&
                Objects.equals(disableRepliesFromGroups, getSettingsResponse.disableRepliesFromGroups) &&
                Objects.equals(sectionsList, getSettingsResponse.sectionsList) &&
                Objects.equals(eventGroupId, getSettingsResponse.eventGroupId) &&
                Objects.equals(articles, getSettingsResponse.articles) &&
                Objects.equals(wall, getSettingsResponse.wall) &&
                Objects.equals(contacts, getSettingsResponse.contacts);
    }

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

    public String toPrettyString() {
        final StringBuilder sb = new StringBuilder("GetSettingsResponse{");
        sb.append("addresses=").append(addresses);
        sb.append(", publicCategory=").append(publicCategory);
        sb.append(", publicSubcategory=").append(publicSubcategory);
        sb.append(", subject=").append(subject);
        sb.append(", wiki=").append(wiki);
        sb.append(", botsStartButton=").append(botsStartButton);
        sb.append(", photos=").append(photos);
        sb.append(", mainSection=").append(mainSection);
        sb.append(", obsceneStopwords=").append(obsceneStopwords);
        sb.append(", twitter=").append(twitter);
        sb.append(", docs=").append(docs);
        sb.append(", finishDate=").append(finishDate);
        sb.append(", links=").append(links);
        sb.append(", obsceneFilter=").append(obsceneFilter);
        sb.append(", events=").append(events);
        sb.append(", publicDateLabel='").append(publicDateLabel).append("'");
        sb.append(", publicCategoryList=").append(publicCategoryList);
        sb.append(", ageLimits=").append(ageLimits);
        sb.append(", toxicFilter=").append(toxicFilter);
        sb.append(", phone='").append(phone).append("'");
        sb.append(", countryId=").append(countryId);
        sb.append(", cityId=").append(cityId);
        sb.append(", botsAddToChat=").append(botsAddToChat);
        sb.append(", botsCapabilities=").append(botsCapabilities);
        sb.append(", access=").append(access);
        sb.append(", description='").append(description).append("'");
        sb.append(", video=").append(video);
        sb.append(", title='").append(title).append("'");
        sb.append(", suggestedPrivacy=").append(suggestedPrivacy);
        sb.append(", cityName='").append(cityName).append("'");
        sb.append(", rss=").append(rss);
        sb.append(", subjectList=").append(subjectList);
        sb.append(", countryName='").append(countryName).append("'");
        sb.append(", audio=").append(audio);
        sb.append(", publicDate='").append(publicDate).append("'");
        sb.append(", email='").append(email).append("'");
        sb.append(", secondarySection=").append(secondarySection);
        sb.append(", startDate=").append(startDate);
        sb.append(", website='").append(website).append("'");
        sb.append(", address='").append(address).append("'");
        sb.append(", topics=").append(topics);
        sb.append(", recognizePhoto=").append(recognizePhoto);
        sb.append(", obsceneWords='").append(obsceneWords).append("'");
        sb.append(", disableRepliesFromGroups=").append(disableRepliesFromGroups);
        sb.append(", sectionsList=").append(sectionsList);
        sb.append(", eventGroupId=").append(eventGroupId);
        sb.append(", articles=").append(articles);
        sb.append(", wall=").append(wall);
        sb.append(", contacts=").append(contacts);
        sb.append('}');
        return sb.toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy