eu.xenit.apix.comments.Conversation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apix-interface Show documentation
Show all versions of apix-interface Show documentation
Xenit API-X Java interface
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