-
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.
feat(connection): Replace Tuple with IpDetails which is optimized for…
… this specific usecase
- Loading branch information
Showing
5 changed files
with
25 additions
and
41 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
...telestion-services/src/main/java/de/wuespace/telestion/services/connection/IpDetails.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,13 @@ | ||
package de.wuespace.telestion.services.connection; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import de.wuespace.telestion.api.message.JsonMessage; | ||
|
||
public record IpDetails(@JsonProperty | ||
String ip, | ||
@JsonProperty | ||
int port) implements JsonMessage { | ||
public IpDetails() { | ||
this("0.0.0.0", 0); | ||
} | ||
} |
29 changes: 0 additions & 29 deletions
29
...les/telestion-services/src/main/java/de/wuespace/telestion/services/connection/Tuple.java
This file was deleted.
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