-
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.
- Loading branch information
1 parent
df11e06
commit 50a15af
Showing
12 changed files
with
120 additions
and
53 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
27 changes: 27 additions & 0 deletions
27
src/main/java/com/broll/networklib/client/tasks/LobbyDiscoveryResult.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,27 @@ | ||
package com.broll.networklib.client.tasks; | ||
|
||
import com.broll.networklib.client.impl.GameLobby; | ||
|
||
import java.util.List; | ||
|
||
public class LobbyDiscoveryResult { | ||
|
||
private List<DiscoveredLobbies> lobbies; | ||
private GameLobby reconnected; | ||
|
||
public LobbyDiscoveryResult(List<DiscoveredLobbies> lobbies){ | ||
this.lobbies = lobbies; | ||
} | ||
|
||
public LobbyDiscoveryResult(GameLobby reconnected){ | ||
this.reconnected = reconnected; | ||
} | ||
|
||
public List<DiscoveredLobbies> getLobbies() { | ||
return lobbies; | ||
} | ||
|
||
public GameLobby getReconnectedLobby() { | ||
return reconnected; | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
src/main/java/com/broll/networklib/client/tasks/LobbyListResult.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,26 @@ | ||
package com.broll.networklib.client.tasks; | ||
|
||
import com.broll.networklib.client.impl.GameLobby; | ||
|
||
public class LobbyListResult { | ||
|
||
private DiscoveredLobbies lobbies; | ||
private GameLobby reconnected; | ||
|
||
|
||
public LobbyListResult(DiscoveredLobbies lobbies){ | ||
this.lobbies = lobbies; | ||
} | ||
|
||
public LobbyListResult(GameLobby reconnected){ | ||
this.reconnected = reconnected; | ||
} | ||
|
||
public DiscoveredLobbies getLobbies() { | ||
return lobbies; | ||
} | ||
|
||
public GameLobby getReconnectedLobby() { | ||
return reconnected; | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,5 @@ | |
public class NT_ListLobbies { | ||
public String authenticationKey; | ||
|
||
public String version; | ||
} |
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 |
---|---|---|
|
@@ -6,6 +6,4 @@ public class NT_LobbyCreate { | |
public Object settings; | ||
public String lobbyName; | ||
|
||
public String version; | ||
|
||
} |
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 |
---|---|---|
|
@@ -5,5 +5,4 @@ public class NT_LobbyJoin { | |
public int lobbyId; | ||
public String authenticationKey; | ||
|
||
public String version; | ||
} |
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