Пример #1
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="apidc">API data contract</param>
 public ServerListConnector(APIDataContract apidc)
 {
     name = apidc.Name;
     if (!(Enum.TryParse(apidc.Type, out serverListType)))
     {
         serverListType = EServerListType.Error;
     }
     endpoint = apidc.Endpoint;
 }
Пример #2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="name">Name</param>
 /// <param name="serverListType">Server list type</param>
 /// <param name="endpoint">Endpoint</param>
 public ServerListConnector(string name, EServerListType serverListType, string endpoint)
 {
     this.name           = name;
     this.serverListType = serverListType;
     this.endpoint       = endpoint;
 }