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

com.vk.api.sdk.objects.callback.MarketCommentDelete 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.callback;

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.Objects;

/**
 * MarketCommentDelete object
 */
public class MarketCommentDelete implements Validable {
    @SerializedName("id")
    @Required
    private Integer id;

    @SerializedName("item_id")
    @Required
    private Integer itemId;

    /**
     * Entity: owner
     */
    @SerializedName("owner_id")
    @Required
    private Long ownerId;

    /**
     * Entity: owner
     */
    @SerializedName("user_id")
    @Required
    private Long userId;

    public Integer getId() {
        return id;
    }

    public MarketCommentDelete setId(Integer id) {
        this.id = id;
        return this;
    }

    public Integer getItemId() {
        return itemId;
    }

    public MarketCommentDelete setItemId(Integer itemId) {
        this.itemId = itemId;
        return this;
    }

    public Long getOwnerId() {
        return ownerId;
    }

    public MarketCommentDelete setOwnerId(Long ownerId) {
        this.ownerId = ownerId;
        return this;
    }

    public Long getUserId() {
        return userId;
    }

    public MarketCommentDelete setUserId(Long userId) {
        this.userId = userId;
        return this;
    }

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

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        MarketCommentDelete marketCommentDelete = (MarketCommentDelete) o;
        return Objects.equals(itemId, marketCommentDelete.itemId) &&
                Objects.equals(userId, marketCommentDelete.userId) &&
                Objects.equals(ownerId, marketCommentDelete.ownerId) &&
                Objects.equals(id, marketCommentDelete.id);
    }

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

    public String toPrettyString() {
        final StringBuilder sb = new StringBuilder("MarketCommentDelete{");
        sb.append("itemId=").append(itemId);
        sb.append(", userId=").append(userId);
        sb.append(", ownerId=").append(ownerId);
        sb.append(", id=").append(id);
        sb.append('}');
        return sb.toString();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy