13 lines
349 B
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;
|
|
}
|
|
}
|