let me turn this into a plugin
This commit is contained in:
parent
145a3116bc
commit
5a4ae1b7f1
4 changed files with 35 additions and 8 deletions
|
|
@ -0,0 +1,12 @@
|
|||
package de.kentoj.scrow.services.mail;
|
||||
|
||||
import lombok.Value;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
@Value
|
||||
public class Mail {
|
||||
UUID from;
|
||||
String subject;
|
||||
String body;
|
||||
}
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
package de.kentoj.scrow.services.mail;
|
||||
|
||||
import reactor.core.publisher.Mono;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* like email but for minecraft
|
||||
*/
|
||||
public interface MailService {
|
||||
|
||||
Mono<Long> sendMail(UUID to, Mail mail);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue