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

com.urbanairship.api.subscriptionlists.model.NamedUserSubscriptionListsListingResponse Maven / Gradle / Ivy

There is a newer version: 9.4.2
Show newest version
package com.urbanairship.api.subscriptionlists.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.collect.ImmutableList;
import com.urbanairship.api.common.model.ErrorDetails;
import com.urbanairship.api.common.model.GenericResponse;

import java.util.Objects;

public class NamedUserSubscriptionListsListingResponse extends GenericResponse {
    private final ImmutableList namedUserSubscriptionListsView;

    public NamedUserSubscriptionListsListingResponse(
            @JsonProperty("ok") Boolean ok,
            @JsonProperty("subscription_lists") ImmutableList namedUserSubscriptionListsView,
            @JsonProperty("operation_id") String operationId,
            @JsonProperty("error") String error,
            @JsonProperty("details") ErrorDetails errorDetails,
            @JsonProperty("error_code") Integer errorCode,
            @JsonProperty("warning") String warning)
    {
        super(ok, operationId, error, errorDetails, errorCode, warning);
        this.namedUserSubscriptionListsView = namedUserSubscriptionListsView;
    }


    public ImmutableList getNamedUserSubscriptionListsView() {
        return namedUserSubscriptionListsView;
    }


    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        NamedUserSubscriptionListsListingResponse that = (NamedUserSubscriptionListsListingResponse) o;
        return Objects.equals(namedUserSubscriptionListsView, that.namedUserSubscriptionListsView);
    }

    @Override
    public int hashCode() {
        return Objects.hash(namedUserSubscriptionListsView);
    }

    @Override
    public String toString() {
        return "SubscriptionListsListingRequest{" +
                ", subscriptionListView=" + namedUserSubscriptionListsView +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy