Initial commit: mail-server with WebFlux backend and Angular v22 Synthwave frontend
Co-authored-by: Junie <junie@jetbrains.com>
This commit is contained in:
@@ -0,0 +1,67 @@
|
||||
package com.mailserver.dto;
|
||||
|
||||
import java.time.Instant;
|
||||
|
||||
public class MessageResponse {
|
||||
|
||||
private Long id;
|
||||
private String senderEmail;
|
||||
private String senderName;
|
||||
private String recipientEmail;
|
||||
private String subject;
|
||||
private String body;
|
||||
private boolean html;
|
||||
private boolean read;
|
||||
private boolean flagged;
|
||||
private boolean spam;
|
||||
private Long messageSize;
|
||||
private Instant receivedAt;
|
||||
private Long folderId;
|
||||
private boolean hasAttachments;
|
||||
private int attachmentCount;
|
||||
|
||||
public Long getId() { return id; }
|
||||
public void setId(Long id) { this.id = id; }
|
||||
|
||||
public String getSenderEmail() { return senderEmail; }
|
||||
public void setSenderEmail(String senderEmail) { this.senderEmail = senderEmail; }
|
||||
|
||||
public String getSenderName() { return senderName; }
|
||||
public void setSenderName(String senderName) { this.senderName = senderName; }
|
||||
|
||||
public String getRecipientEmail() { return recipientEmail; }
|
||||
public void setRecipientEmail(String recipientEmail) { this.recipientEmail = recipientEmail; }
|
||||
|
||||
public String getSubject() { return subject; }
|
||||
public void setSubject(String subject) { this.subject = subject; }
|
||||
|
||||
public String getBody() { return body; }
|
||||
public void setBody(String body) { this.body = body; }
|
||||
|
||||
public boolean isHtml() { return html; }
|
||||
public void setHtml(boolean html) { this.html = html; }
|
||||
|
||||
public boolean isRead() { return read; }
|
||||
public void setRead(boolean read) { this.read = read; }
|
||||
|
||||
public boolean isFlagged() { return flagged; }
|
||||
public void setFlagged(boolean flagged) { this.flagged = flagged; }
|
||||
|
||||
public boolean isSpam() { return spam; }
|
||||
public void setSpam(boolean spam) { this.spam = spam; }
|
||||
|
||||
public Long getMessageSize() { return messageSize; }
|
||||
public void setMessageSize(Long messageSize) { this.messageSize = messageSize; }
|
||||
|
||||
public Instant getReceivedAt() { return receivedAt; }
|
||||
public void setReceivedAt(Instant receivedAt) { this.receivedAt = receivedAt; }
|
||||
|
||||
public Long getFolderId() { return folderId; }
|
||||
public void setFolderId(Long folderId) { this.folderId = folderId; }
|
||||
|
||||
public boolean isHasAttachments() { return hasAttachments; }
|
||||
public void setHasAttachments(boolean hasAttachments) { this.hasAttachments = hasAttachments; }
|
||||
|
||||
public int getAttachmentCount() { return attachmentCount; }
|
||||
public void setAttachmentCount(int attachmentCount) { this.attachmentCount = attachmentCount; }
|
||||
}
|
||||
Reference in New Issue
Block a user