Gitea-Helpdesk/src/main/java/io/gitlab/jfronny/gitea/helpdesk/mail/Attachment.java

13 lines
349 B
Java

package io.gitlab.jfronny.gitea.helpdesk.mail;
import jakarta.mail.MessagingException;
import java.io.IOException;
import java.io.InputStream;
public record Attachment(String fileName, InputStreamGenerator content) {
public interface InputStreamGenerator {
InputStream getInputStream() throws IOException, MessagingException;
}
}