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

com.urbanairship.api.inbox.model.InboxBatchDeleteResponse Maven / Gradle / Ivy

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

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;
import java.util.Objects;


public class InboxBatchDeleteResponse {
    private final List deletedMessageIds;
    private final List messageIdErrors;

    public InboxBatchDeleteResponse(@JsonProperty("deleted_message_ids") List deletedMessageIds,
                                    @JsonProperty("errors") List messageIdErrors) {
        this.deletedMessageIds = deletedMessageIds;
        this.messageIdErrors = messageIdErrors;
    }

    public List getDeletedMessageIds() {
        return deletedMessageIds;
    }

    public List getMessageIdErrors() {
        return messageIdErrors;
    }

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

    @Override
    public int hashCode() {
        return Objects.hash(deletedMessageIds, messageIdErrors);
    }

    @Override
    public String toString() {
        return "InboxBatchDeleteResponse{" +
                "deletedMessageIds=" + deletedMessageIds +
                ", messageIdErrors=" + messageIdErrors +
                '}';
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy