mirror of
https://github.com/simtactics/mysimulation.git
synced 2025-03-22 01:12:24 +00:00
- NioTSO client isn't needed because we're using RayLib - Added FreeSO's API server to handle most backend operations
30 lines
1 KiB
C#
Executable file
30 lines
1 KiB
C#
Executable file
using FSO.Common.Utils;
|
|
|
|
namespace FSO.Server.Protocol.CitySelector
|
|
{
|
|
public class UserAuthorized : IXMLEntity
|
|
{
|
|
public string FSOVersion;
|
|
public string FSOBranch;
|
|
public string FSOUpdateUrl;
|
|
public string FSOCDNUrl;
|
|
|
|
public System.Xml.XmlElement Serialize(System.Xml.XmlDocument doc)
|
|
{
|
|
var element = doc.CreateElement("User-Authorized");
|
|
element.AppendTextNode("FSO-Version", FSOVersion);
|
|
element.AppendTextNode("FSO-Branch", FSOBranch);
|
|
element.AppendTextNode("FSO-UpdateUrl", FSOUpdateUrl);
|
|
element.AppendTextNode("FSO-CDNUrl", FSOCDNUrl);
|
|
return element;
|
|
}
|
|
|
|
public void Parse(System.Xml.XmlElement element)
|
|
{
|
|
this.FSOVersion = element.ReadTextNode("FSO-Version");
|
|
this.FSOBranch = element.ReadTextNode("FSO-Branch");
|
|
this.FSOUpdateUrl = element.ReadTextNode("FSO-UpdateUrl");
|
|
this.FSOCDNUrl = element.ReadTextNode("FSO-CDNUrl");
|
|
}
|
|
}
|
|
}
|