-
Notifications
You must be signed in to change notification settings - Fork 1
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
2b97d07
commit d1ead02
Showing
11 changed files
with
192 additions
and
21 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
2 changes: 2 additions & 0 deletions
2
src/servers-integration-webapi-abstractions/Interfaces/IRconApi.cs
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,11 +1,13 @@ | ||
using MxIO.ApiClient.Abstractions; | ||
|
||
using XtremeIdiots.Portal.ServersApi.Abstractions.Models; | ||
using XtremeIdiots.Portal.ServersApi.Abstractions.Models.Rcon; | ||
|
||
namespace XtremeIdiots.Portal.ServersApi.Abstractions.Interfaces | ||
{ | ||
public interface IRconApi | ||
{ | ||
Task<ApiResponseDto<ServerRconStatusResponseDto>> GetServerStatus(Guid gameServerId); | ||
Task<ApiResponseDto<RconMapCollectionDto>> GetServerMaps(Guid gameServerId); | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
src/servers-integration-webapi-abstractions/Models/Rcon/RconMapCollectionDto.cs
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 @@ | ||
using MxIO.ApiClient.Abstractions; | ||
|
||
namespace XtremeIdiots.Portal.ServersApi.Abstractions.Models.Rcon | ||
{ | ||
public class RconMapCollectionDto : CollectionDto<RconMapDto> | ||
{ | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
src/servers-integration-webapi-abstractions/Models/Rcon/RconMapDto.cs
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,14 @@ | ||
namespace XtremeIdiots.Portal.ServersApi.Abstractions.Models.Rcon | ||
{ | ||
public class RconMapDto | ||
{ | ||
public RconMapDto(string gameType, string mapName) | ||
{ | ||
GameType = gameType; | ||
MapName = mapName; | ||
} | ||
|
||
public string GameType { get; set; } | ||
public string MapName { get; set; } | ||
} | ||
} |
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
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 @@ | ||
namespace XtremeIdiots.Portal.ServersWebApi.Models | ||
{ | ||
public class Quake3QueryMap | ||
{ | ||
public string GameType { get; set; } | ||
public string MapName { get; set; } | ||
} | ||
} |