-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev-1.35.0' of https://github.com/BeatTogether/BeatToge…
…ther.Status.Api into dev-1.35.0
- Loading branch information
Showing
9 changed files
with
60 additions
and
75 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 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 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 was deleted.
Oops, something went wrong.
35 changes: 21 additions & 14 deletions
35
Models/MasterServerAvailabilityData.cs → Models/MasterServerStatusData.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,14 +1,21 @@ | ||
using BeatTogether.Status.Api.Enums; | ||
using System.Collections.Generic; | ||
|
||
namespace BeatTogether.Status.Api.Models | ||
{ | ||
public record MasterServerAvailabilityData( | ||
string minimumAppVersion, | ||
AvailabilityStatus status, | ||
long maintenanceStartTime, | ||
long maintenanceEndTime, | ||
UserMessage userMessage, | ||
List<RequiredMod> requiredMods, | ||
bool useSsl); | ||
} | ||
using BeatTogether.Status.Api.Enums; | ||
using System.Collections.Generic; | ||
|
||
namespace BeatTogether.Status.Api.Models | ||
{ | ||
public record MasterServerStatusData( | ||
string minimumAppVersion, | ||
AvailabilityStatus status, | ||
long maintenanceStartTime, | ||
long maintenanceEndTime, | ||
UserMessage userMessage, | ||
List<RequiredMod> requiredMods, | ||
bool useSsl, | ||
string name, | ||
string description, | ||
string imageUrl, | ||
int maxPlayers, | ||
bool supportsPpModifiers, | ||
bool supportsPpDifficulties, | ||
bool supportsPpMaps); | ||
} |
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,7 +1,18 @@ | ||
namespace BeatTogether.Status.Api.Models | ||
{ | ||
public record RequiredMod { | ||
public record RequiredMod | ||
{ | ||
/// <summary> | ||
/// BSIPA Mod ID | ||
/// </summary> | ||
public string id { get; set; } = string.Empty; | ||
/// <summary> | ||
/// Minimum version of the mod required, if installed | ||
/// </summary> | ||
public string version { get; set; } = string.Empty; | ||
/// <summary> | ||
/// Indicates whether the mod must be installed | ||
/// </summary> | ||
public bool required { get; set; } = false; | ||
} | ||
} | ||
} |
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