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

model.InboundMessage Maven / Gradle / Ivy

There is a newer version: 1.3.9
Show newest version
package model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import utils.SymMessageParser;

import java.util.List;

@JsonIgnoreProperties(ignoreUnknown = true)
public class InboundMessage {
    private String messageId;
    private Long timestamp;
    private String message;
    private String data;
    private List attachments;
    private User user;
    private Stream stream;
    private Boolean externalRecipients;
    private String diagnostic;
    private String userAgent;
    private String originalFormat;
    private String messageText;


    public String getMessageId() {
        return messageId;
    }

    public void setMessageId(String messageId) {
        this.messageId = messageId;
    }

    public Long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Long timestamp) {
        this.timestamp = timestamp;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public List getAttachments() {
        return attachments;
    }

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

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Stream getStream() {
        return stream;
    }

    public void setStream(Stream stream) {
        this.stream = stream;
    }

    public Boolean getExternalRecipients() {
        return externalRecipients;
    }

    public void setExternalRecipients(Boolean externalRecipients) {
        this.externalRecipients = externalRecipients;
    }

    public String getDiagnostic() {
        return diagnostic;
    }

    public void setDiagnostic(String diagnostic) {
        this.diagnostic = diagnostic;
    }

    public String getUserAgent() {
        return userAgent;
    }

    public void setUserAgent(String userAgent) {
        this.userAgent = userAgent;
    }

    public String getOriginalFormat() {
        return originalFormat;
    }

    public void setOriginalFormat(String originalFormat) {
        this.originalFormat = originalFormat;
    }

    public String getMessageText() {
        if(messageText==null){
            messageText = SymMessageParser.getInstance().messageToText(message,data);
        }
        return messageText;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy