generated from pagopa/pn-template-ms-be
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
82d6d66
commit d8e0762
Showing
15 changed files
with
262 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
src/main/java/it/pagopa/pn/library/pec/model/pojo/PnEcPecGetMessagesResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package it.pagopa.pn.library.pec.model.pojo; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.Setter; | ||
@Getter | ||
@Setter | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
public class PnEcPecGetMessagesResponse { | ||
|
||
private PnEcPecListOfMessages pnEcPecListOfMessages; | ||
private int numOfMessages; | ||
|
||
} |
18 changes: 18 additions & 0 deletions
18
src/main/java/it/pagopa/pn/library/pec/model/pojo/PnEcPecListOfMessages.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package it.pagopa.pn.library.pec.model.pojo; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.Setter; | ||
|
||
import java.util.List; | ||
|
||
@Getter | ||
@Setter | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
public class PnEcPecListOfMessages { | ||
|
||
private List<PnEcPecMessage> messages; | ||
|
||
} |
25 changes: 25 additions & 0 deletions
25
src/main/java/it/pagopa/pn/library/pec/model/pojo/PnEcPecMessage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package it.pagopa.pn.library.pec.model.pojo; | ||
|
||
import lombok.*; | ||
import lombok.Data; | ||
|
||
@Data | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
public class PnEcPecMessage { | ||
|
||
@ToString.Exclude | ||
private byte[] message; | ||
private String providerName; | ||
|
||
public PnEcPecMessage message(byte[] message) { | ||
this.message = message; | ||
return this; | ||
} | ||
|
||
public PnEcPecMessage providerName(String providerName) { | ||
this.providerName = providerName; | ||
return this; | ||
} | ||
|
||
} |
16 changes: 16 additions & 0 deletions
16
src/main/java/it/pagopa/pn/library/pec/service/PnEcPecService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package it.pagopa.pn.library.pec.service; | ||
|
||
import it.pagopa.pn.library.pec.model.pojo.PnEcPecGetMessagesResponse; | ||
import reactor.core.publisher.Mono; | ||
|
||
public interface PnEcPecService { | ||
Mono<String> sendMail(byte[] message); | ||
|
||
Mono<Void> markMessageAsRead(String messageID, String providerName); | ||
|
||
Mono<Void> deleteMessage(String messageID, String senderMessageID); | ||
|
||
Mono<PnEcPecGetMessagesResponse> getUnreadMessages(int limit); | ||
|
||
Mono<Integer> getMessageCount(); | ||
} |
Oops, something went wrong.