forked from FAForever/downlords-faf-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of github.com:FAForever/downlords-faf-client i…
…nto feature/FAForever#3023-replay-card-enhancement
- Loading branch information
Showing
13 changed files
with
179 additions
and
156 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,24 @@ | ||
package com.faforever.client.chat; | ||
|
||
import lombok.EqualsAndHashCode; | ||
import lombok.Getter; | ||
import lombok.RequiredArgsConstructor; | ||
|
||
import java.time.Instant; | ||
|
||
public record ChatMessage(Instant time, ChatChannelUser sender, String message, String id, boolean action) { | ||
@RequiredArgsConstructor | ||
@EqualsAndHashCode(onlyExplicitlyIncluded = true) | ||
@Getter | ||
public class ChatMessage { | ||
|
||
@EqualsAndHashCode.Include | ||
private final String id; | ||
private final Instant time; | ||
private final ChatChannelUser sender; | ||
private final String content; | ||
private final Type type; | ||
|
||
public ChatMessage(Instant time, ChatChannelUser sender, String message, String id) { | ||
this(time, sender, message, id, false); | ||
public enum Type { | ||
MESSAGE, ACTION, PENDING | ||
} | ||
} |
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
Oops, something went wrong.