-
Notifications
You must be signed in to change notification settings - Fork 12
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
Showing
18 changed files
with
875 additions
and
186 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
18 changes: 18 additions & 0 deletions
18
src/main/java/com/faforever/moderatorclient/api/dto/AvatarAssignmentUpdate.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 com.faforever.moderatorclient.api.dto; | ||
|
||
import com.faforever.commons.api.dto.AvatarAssignment; | ||
import com.github.jasminb.jsonapi.annotations.Id; | ||
import com.github.jasminb.jsonapi.annotations.Type; | ||
import lombok.Value; | ||
|
||
import java.time.OffsetDateTime; | ||
import java.util.Optional; | ||
|
||
@Value | ||
@Type("avatarAssignment") | ||
public class AvatarAssignmentUpdate implements UpdateDto<AvatarAssignment> { | ||
@Id | ||
private String id; | ||
private Optional<Boolean> selected; | ||
private Optional<OffsetDateTime> expiresAt; | ||
} |
8 changes: 8 additions & 0 deletions
8
src/main/java/com/faforever/moderatorclient/api/dto/AvatarMetadata.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,8 @@ | ||
package com.faforever.moderatorclient.api.dto; | ||
|
||
import lombok.Data; | ||
|
||
@Data | ||
public class AvatarMetadata { | ||
private String name; | ||
} |
5 changes: 5 additions & 0 deletions
5
src/main/java/com/faforever/moderatorclient/api/dto/UpdateDto.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,5 @@ | ||
package com.faforever.moderatorclient.api.dto; | ||
|
||
public interface UpdateDto<T> { | ||
String getId(); | ||
} |
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
Oops, something went wrong.