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

com.vk.api.sdk.objects.support.UnblockScreenTutorialFields 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.support;

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 java.util.List;
import java.util.Objects;

/**
 * UnblockScreenTutorialFields object
 */
public class UnblockScreenTutorialFields implements Validable {
    @SerializedName("questions")
    private List questions;

    /**
     * Экран, на который происходит переход после ответа на все вопросы
     */
    @SerializedName("target")
    private String target;

    @SerializedName("type")
    @Required
    private UnblockScreenTutorialFieldsType type;

    public List getQuestions() {
        return questions;
    }

    public UnblockScreenTutorialFields setQuestions(
            List questions) {
        this.questions = questions;
        return this;
    }

    public String getTarget() {
        return target;
    }

    public UnblockScreenTutorialFields setTarget(String target) {
        this.target = target;
        return this;
    }

    public UnblockScreenTutorialFieldsType getType() {
        return type;
    }

    public UnblockScreenTutorialFields setType(UnblockScreenTutorialFieldsType type) {
        this.type = type;
        return this;
    }

    @Override
    public int hashCode() {
        return Objects.hash(questions, type, target);
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        UnblockScreenTutorialFields unblockScreenTutorialFields = (UnblockScreenTutorialFields) o;
        return Objects.equals(questions, unblockScreenTutorialFields.questions) &&
                Objects.equals(type, unblockScreenTutorialFields.type) &&
                Objects.equals(target, unblockScreenTutorialFields.target);
    }

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

    public String toPrettyString() {
        final StringBuilder sb = new StringBuilder("UnblockScreenTutorialFields{");
        sb.append("questions=").append(questions);
        sb.append(", type='").append(type).append("'");
        sb.append(", target='").append(target).append("'");
        sb.append('}');
        return sb.toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy