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

com.vk.api.sdk.objects.appwidgets.responses.GetImagesByIdResponse Maven / Gradle / Ivy

// Autogenerated from vk-api-schema. Please don't edit it manually.
package com.vk.api.sdk.objects.appwidgets.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.Image;
import java.util.List;
import java.util.Objects;

/**
 * GetImagesByIdResponse object
 */
public class GetImagesByIdResponse implements Validable {
    /**
     * Image ID
     */
    @SerializedName("id")
    @Required
    private String id;

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

    public String getId() {
        return id;
    }

    public GetImagesByIdResponse setId(String id) {
        this.id = id;
        return this;
    }

    public List getImages() {
        return images;
    }

    public GetImagesByIdResponse setImages(List images) {
        this.images = images;
        return this;
    }

    @Override
    public int hashCode() {
        return Objects.hash(images, id);
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        GetImagesByIdResponse getImagesByIdResponse = (GetImagesByIdResponse) o;
        return Objects.equals(images, getImagesByIdResponse.images) &&
                Objects.equals(id, getImagesByIdResponse.id);
    }

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

    public String toPrettyString() {
        final StringBuilder sb = new StringBuilder("GetImagesByIdResponse{");
        sb.append("images=").append(images);
        sb.append(", id='").append(id).append("'");
        sb.append('}');
        return sb.toString();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy