-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #279 from RakSrinaNa/fix/update-summary
Fix unknown field 'summaries_by_display_type' in update-summary
- Loading branch information
Showing
6 changed files
with
91 additions
and
1 deletion.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
...srinana/channelpointsminer/miner/api/ws/data/message/subtype/NotificationDisplayType.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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
package fr.raksrinana.channelpointsminer.miner.api.ws.data.message.subtype; | ||
|
||
public enum NotificationDisplayType{ | ||
CREATOR, | ||
VIEWER | ||
} |
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
28 changes: 28 additions & 0 deletions
28
...hannelpointsminer/miner/api/ws/data/message/subtype/NotificationSummaryByDisplayType.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,28 @@ | ||
package fr.raksrinana.channelpointsminer.miner.api.ws.data.message.subtype; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize; | ||
import fr.raksrinana.channelpointsminer.miner.util.json.ISO8601ZonedDateTimeDeserializer; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.ToString; | ||
import org.jetbrains.annotations.NotNull; | ||
import java.time.ZonedDateTime; | ||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Getter | ||
@EqualsAndHashCode | ||
@ToString | ||
@Builder | ||
public class NotificationSummaryByDisplayType{ | ||
@JsonProperty("unread_summary") | ||
private Summary unreadSummary; | ||
@JsonProperty("unseen_summary") | ||
private Summary unseenSummary; | ||
} |
30 changes: 30 additions & 0 deletions
30
...main/java/fr/raksrinana/channelpointsminer/miner/api/ws/data/message/subtype/Summary.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,30 @@ | ||
package fr.raksrinana.channelpointsminer.miner.api.ws.data.message.subtype; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize; | ||
import fr.raksrinana.channelpointsminer.miner.util.json.ISO8601ZonedDateTimeDeserializer; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.ToString; | ||
import org.jetbrains.annotations.NotNull; | ||
import java.time.ZonedDateTime; | ||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Getter | ||
@EqualsAndHashCode | ||
@ToString | ||
@Builder | ||
public class Summary{ | ||
@JsonProperty("count") | ||
private int count; | ||
@JsonProperty("last_read_all") | ||
@JsonDeserialize(using = ISO8601ZonedDateTimeDeserializer.class) | ||
@NotNull | ||
private ZonedDateTime lastSeenAt; | ||
} |
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