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

com.manywho.sdk.api.social.Message Maven / Gradle / Ivy

There is a newer version: 2.0.1
Show newest version
package com.manywho.sdk.api.social;

import java.time.OffsetDateTime;
import java.util.ArrayList;
import java.util.List;

public class Message {
    private String id;
    private String repliedToId;
    private String text;
    private OffsetDateTime createdDate;
    private Who sender;
    private List attachments = new ArrayList<>();
    private List comments = new ArrayList<>();
    private List likerIds = new ArrayList<>();
    private String myLikeId;
    private int commentCount;

    public String getId() {
        return id;
    }

    public Message setId(String id) {
        this.id = id;
        return this;
    }

    public String getRepliedToId() {
        return repliedToId;
    }

    public Message setRepliedToId(String repliedToId) {
        this.repliedToId = repliedToId;
        return this;
    }

    public String getText() {
        return text;
    }

    public Message setText(String text) {
        this.text = text;
        return this;
    }

    public OffsetDateTime getCreatedDate() {
        return createdDate;
    }

    public Message setCreatedDate(OffsetDateTime createdDate) {
        this.createdDate = createdDate;
        return this;
    }

    public Who getSender() {
        return sender;
    }

    public Message setSender(Who sender) {
        this.sender = sender;
        return this;
    }

    public List getAttachments() {
        return attachments;
    }

    public Message addAttachment(Attachment attachment) {
        this.attachments.add(attachment);
        return this;
    }

    public Message setAttachments(List attachments) {
        this.attachments = attachments;
        return this;
    }

    public List getComments() {
        return comments;
    }

    public Message addComment(Message comment) {
        this.comments.add(comment);
        return this;
    }

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

    public List getLikerIds() {
        return likerIds;
    }

    public Message setLikerIds(List likerIds) {
        this.likerIds = likerIds;
        return this;
    }

    public String getMyLikeId() {
        return myLikeId;
    }

    public Message setMyLikeId(String myLikeId) {
        this.myLikeId = myLikeId;
        return this;
    }

    public int getCommentCount() {
        return commentCount;
    }

    public Message setCommentCount(int commentCount) {
        this.commentCount = commentCount;
        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy