-
Notifications
You must be signed in to change notification settings - Fork 7
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
9a8800c
commit 8509bce
Showing
6 changed files
with
73 additions
and
31 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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace XProxy.Models | ||
{ | ||
public class BuildInfo | ||
{ | ||
private Version _parsedVersion; | ||
|
||
[JsonIgnore] | ||
public Version ParsedVersion | ||
{ | ||
get | ||
{ | ||
if (_parsedVersion == null) | ||
System.Version.TryParse(Version, out _parsedVersion); | ||
|
||
return _parsedVersion; | ||
} | ||
} | ||
|
||
public string Version { get; set; } = "0.0.0"; | ||
public string[] SupportedGameVersions { get; set; } = new string[0]; | ||
public string[] Changelogs { get; set; } = new string[0]; | ||
public string CoreUrl { get; set; } | ||
public string DependenciesUrl { 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace XProxy.Models | ||
{ | ||
public class BuildInfo | ||
{ | ||
private Version _parsedVersion; | ||
|
||
[JsonIgnore] | ||
public Version ParsedVersion | ||
{ | ||
get | ||
{ | ||
if (_parsedVersion == null) | ||
System.Version.TryParse(Version, out _parsedVersion); | ||
|
||
return _parsedVersion; | ||
} | ||
} | ||
|
||
public string Version { get; set; } = "0.0.0"; | ||
public string[] SupportedGameVersions { get; set; } = new string[0]; | ||
public string[] Changelogs { get; set; } = new string[0]; | ||
public string CoreUrl { get; set; } | ||
public string DependenciesUrl { 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