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

eu.xenit.apix.comments.Conversation Maven / Gradle / Ivy

There is a newer version: 4.1.2
Show newest version
package eu.xenit.apix.comments;

import com.fasterxml.jackson.annotation.JsonProperty;

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

public class Conversation {

    private List comments;
    @JsonProperty("hasMore")
    private boolean hasMore;
    @JsonProperty("isCreatable")
    private boolean creatable;

    public Conversation() {
    }

    public Conversation(List comments, boolean hasMore, boolean creatable) {
        this.comments = comments;
        this.hasMore = hasMore;
        this.creatable = creatable;
    }

    public List getComments() {
        return comments;
    }

    public void setComments(List comments) {
        this.comments = comments;
    }

    public boolean hasMore() {
        return hasMore;
    }

    public void setHasMore(boolean hasMore) {
        this.hasMore = hasMore;
    }

    public boolean isCreatable() {
        return creatable;
    }

    public void setCreatable(boolean creatable) {
        this.creatable = creatable;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof Conversation)) {
            return false;
        }
        Conversation that = (Conversation) o;
        return hasMore() == that.hasMore() &&
                isCreatable() == that.isCreatable() &&
                getComments().equals(that.getComments());
    }

    @Override
    public int hashCode() {
        return Objects.hash(getComments(), hasMore(), isCreatable());
    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy