public GCVersion(string steamWebApiKey, GCVersionAppId appId) : base(steamWebApiKey, "IGCVersion_" + (int)appId) { if (appId <= 0) { throw new ArgumentOutOfRangeException("appId"); } this.appId = (int)appId; validClientVersionAppIds.Add(440); validClientVersionAppIds.Add(570); validServerVersionAppIds.Add(440); validServerVersionAppIds.Add(570); validServerVersionAppIds.Add(730); }
/// <summary> /// Default constructor established the Steam Web API key and initializes for subsequent method calls /// </summary> /// <param name="steamWebRequest"></param> public GCVersion(ISteamWebRequest steamWebRequest, GCVersionAppId appId, ISteamWebInterface steamWebInterface = null) { this.steamWebInterface = steamWebInterface == null ? new SteamWebInterface("IGCVersion_" + (uint)appId, steamWebRequest) : steamWebInterface; if (appId <= 0) { throw new ArgumentOutOfRangeException("appId"); } this.appId = (uint)appId; validClientVersionAppIds.Add(440); validClientVersionAppIds.Add(570); validServerVersionAppIds.Add(440); validServerVersionAppIds.Add(570); validServerVersionAppIds.Add(730); }