com.github.bloodshura.sparkium.mail.guerrilla.GuerrillaMessage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sparkium-mail Show documentation
Show all versions of sparkium-mail Show documentation
An API which aims to facilitate the usage of javax.mail, also including other mailing services.
The newest version!
package com.github.bloodshura.sparkium.mail.guerrilla;
import com.github.bloodshura.ignitium.collection.list.XList;
import com.github.bloodshura.ignitium.collection.list.impl.XArrayList;
import com.github.bloodshura.ignitium.io.File;
import com.github.bloodshura.sparkium.mail.component.Message;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import java.time.LocalTime;
public class GuerrillaMessage extends Message {
private int id;
private boolean read;
private String sender;
private LocalTime when;
@Deprecated
@Nonnull
@Override
public XList getAttachments() {
return new XArrayList<>();
}
public int getId() {
return id;
}
@Nullable
public String getSender() {
return sender;
}
@Nullable
public LocalTime getWhen() {
return when;
}
@Override
public boolean hasAttachments() {
return false;
}
public boolean isRead() {
return read;
}
public void setId(int id) {
this.id = id;
}
public void setRead(boolean read) {
this.read = read;
}
public void setSender(@Nullable String sender) {
this.sender = sender;
}
public void setWhen(@Nullable LocalTime when) {
this.when = when;
}
@Nonnull
@Override
protected Object[] stringValues() {
return new Object[] { getId(), isRead(), getSender(), getSubject(), getWhen(), getContent() };
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy