Пример #1
0
        /// <summary>
        /// Default constructor established the Steam Web API key and initializes for subsequent method calls
        /// </summary>
        /// <param name="steamWebRequest"></param>
        public GCVersion(IMapper mapper, ISteamWebRequest steamWebRequest, AppId appId, ISteamWebInterface steamWebInterface = null)
        {
            this.mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));

            this.steamWebInterface = steamWebInterface == null
                ? new SteamWebInterface("IGCVersion_" + (uint)appId, steamWebRequest)
                : steamWebInterface;

            if (appId <= 0)
            {
                throw new ArgumentOutOfRangeException("appId");
            }

            this.appId = (uint)appId;

            validClientVersionAppIds.Add((int)AppId.TeamFortress2);
            validClientVersionAppIds.Add((int)AppId.Dota2);
            validClientVersionAppIds.Add((int)AppId.Artifact);
            validClientVersionAppIds.Add((int)AppId.DotaUnderlords);

            validServerVersionAppIds.Add((int)AppId.TeamFortress2);
            validServerVersionAppIds.Add((int)AppId.Dota2);
            validServerVersionAppIds.Add((int)AppId.CounterStrikeGO);
            validServerVersionAppIds.Add((int)AppId.Artifact);
            validServerVersionAppIds.Add((int)AppId.DotaUnderlords);
        }
Пример #2
0
        /// <summary>
        /// Default constructor established the Steam Web API key and initializes for subsequent method calls
        /// </summary>
        /// <param name="steamWebRequest"></param>
        public EconItems(ISteamWebRequest steamWebRequest, EconItemsAppId appId, ISteamWebInterface steamWebInterface = null)
        {
            if (appId <= 0)
            {
                throw new ArgumentOutOfRangeException("appId");
            }

            this.steamWebInterface = steamWebInterface == null
                ? new SteamWebInterface("IEconItems_" + (uint)appId, steamWebRequest)
                : steamWebInterface;

            this.appId = (uint)appId;

            validSchemaAppIds.Add((uint)EconItemsAppId.TeamFortress2);
            validSchemaAppIds.Add((uint)EconItemsAppId.Dota2);
            validSchemaAppIds.Add((uint)EconItemsAppId.Portal2);
            validSchemaAppIds.Add((uint)EconItemsAppId.Portal2_Beta);
            validSchemaAppIds.Add((uint)EconItemsAppId.CounterStrikeGO);

            validSchemaUrlAppIds.Add((uint)EconItemsAppId.TeamFortress2);
            validSchemaUrlAppIds.Add((uint)EconItemsAppId.Dota2);
            validSchemaUrlAppIds.Add((uint)EconItemsAppId.CounterStrikeGO);

            validStoreMetaDataAppIds.Add((uint)EconItemsAppId.TeamFortress2);
            validStoreMetaDataAppIds.Add((uint)EconItemsAppId.Dota2);
            validStoreMetaDataAppIds.Add((uint)EconItemsAppId.CounterStrikeGO);

            validStoreStatusAppIds.Add((uint)EconItemsAppId.TeamFortress2);
        }
Пример #3
0
        /// <summary>
        /// Default constructor established the Steam Web API key and initializes for subsequent method calls
        /// </summary>
        /// <param name="steamWebRequest"></param>
        public TFItems(IMapper mapper, ISteamWebRequest steamWebRequest, ISteamWebInterface steamWebInterface = null)
        {
            this.mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));

            this.steamWebInterface = steamWebInterface == null
                ? new SteamWebInterface("ITFItems_440", steamWebRequest)
                : steamWebInterface;
        }
Пример #4
0
        /// <summary>
        /// Default constructor established the Steam Web API key and initializes for subsequent method calls
        /// </summary>
        /// <param name="steamWebRequest"></param>
        public PlayerService(IMapper mapper, ISteamWebRequest steamWebRequest, ISteamWebInterface steamWebInterface = null)
        {
            this.mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));

            this.steamWebInterface = steamWebInterface == null
                ? new SteamWebInterface("IPlayerService", steamWebRequest)
                : steamWebInterface;
        }
Пример #5
0
        /// <summary>
        /// Default constructor established the Steam Web API key and initializes for subsequent method calls
        /// </summary>
        /// <param name="steamWebRequest"></param>
        public SteamRemoteStorage(IMapper mapper, ISteamWebRequest steamWebRequest, ISteamWebInterface steamWebInterface = null)
        {
            this.mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));

            this.steamWebInterface = steamWebInterface == null
                ? new SteamWebInterface("ISteamRemoteStorage", steamWebRequest)
                : steamWebInterface;
        }
Пример #6
0
        /// <summary>
        /// Default constructor established the Steam Web API key and initializes for subsequent method calls
        /// </summary>
        /// <param name="steamWebApiKey"></param>
        public DOTA2Match(IMapper mapper, ISteamWebRequest steamWebRequest, ISteamWebInterface steamWebInterface = null)
        {
            this.mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));

            this.steamWebInterface = steamWebInterface == null
                ? new SteamWebInterface("IDOTA2Match_570", steamWebRequest)
                : steamWebInterface;
        }
Пример #7
0
        /// <summary>
        /// Default constructor established the Steam Web API key and initializes for subsequent method calls
        /// </summary>
        /// <param name="steamWebApiKey"></param>
        public CSGOServers(IMapper mapper, ISteamWebRequest steamWebRequest, ISteamWebInterface steamWebInterface = null)
        {
            this.mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));

            this.steamWebInterface = steamWebInterface == null
                ? new SteamWebInterface("ICSGOServers_730", steamWebRequest)
                : steamWebInterface;
        }
Пример #8
0
        public SteamPartner(IMapper mapper, ISteamWebRequest steamWebRequest, AppId appId, ISteamWebInterface steamWebInterface = null)
        {
            this.mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
            this.appId  = appId;

            this.steamWebInterface = steamWebInterface == null
                ? new SteamWebInterface("ISteamUserStats", steamWebRequest)
                : steamWebInterface;
        }
Пример #9
0
        /// <summary>
        /// Default constructor established the Steam Web API key and initializes for subsequent method calls
        /// </summary>
        /// <param name="steamWebApiKey"></param>
        public DOTA2Econ(IMapper mapper, ISteamWebRequest steamWebRequest, ISteamWebInterface steamWebInterface = null)
        {
            this.mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));

            this.dota2WebInterface = steamWebInterface == null
                ? new SteamWebInterface("IEconDOTA2_570", steamWebRequest)
                : steamWebInterface;

            this.dota2TestWebInterface = new SteamWebInterface("IEconDOTA2_205790", steamWebRequest);
        }
Пример #10
0
        /// <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);
        }
Пример #11
0
 /// <summary>
 /// Default constructor established the Steam Web API key and initializes for subsequent method calls
 /// </summary>
 /// <param name="steamWebRequest"></param>
 public PlayerService(ISteamWebRequest steamWebRequest, ISteamWebInterface steamWebInterface = null)
 {
     this.steamWebInterface = steamWebInterface == null
         ? new SteamWebInterface("IPlayerService", steamWebRequest)
         : steamWebInterface;
 }
Пример #12
0
 /// <summary>
 /// Default constructor established the Steam Web API key and initializes for subsequent method calls
 /// </summary>
 /// <param name="steamWebApiKey"></param>
 public SteamNews(string steamWebApiKey, ISteamWebInterface steamWebInterface = null)
 {
     this.steamWebInterface = steamWebInterface == null
         ? new SteamWebInterface(steamWebApiKey, "ISteamNews")
         : steamWebInterface;
 }
Пример #13
0
 /// <summary>
 /// Default constructor established the Steam Web API key and initializes for subsequent method calls
 /// </summary>
 /// <param name="steamWebApiKey"></param>
 public SteamRemoteStorage(string steamWebApiKey, ISteamWebInterface steamWebInterface = null)
 {
     this.steamWebInterface = steamWebInterface == null
         ? new SteamWebInterface(steamWebApiKey, "ISteamRemoteStorage")
         : steamWebInterface;
 }
Пример #14
0
 /// <summary>
 /// Default constructor established the Steam Web API key and initializes for subsequent method calls
 /// </summary>
 /// <param name="steamWebRequest"></param>
 public TFItems(ISteamWebRequest steamWebRequest, ISteamWebInterface steamWebInterface = null)
 {
     this.steamWebInterface = steamWebInterface == null
         ? new SteamWebInterface("ITFItems_440", steamWebRequest)
         : steamWebInterface;
 }
Пример #15
0
 /// <summary>
 /// Default constructor established the Steam Web API key and initializes for subsequent method calls
 /// </summary>
 /// <param name="steamWebApiKey"></param>
 public DOTA2Econ(string steamWebApiKey, ISteamWebInterface steamWebInterface = null)
 {
     this.steamWebInterface = steamWebInterface == null
         ? new SteamWebInterface(steamWebApiKey, "IEconDOTA2_570")
         : steamWebInterface;
 }
Пример #16
0
 /// <summary>
 /// Default constructor established the Steam Web API key and initializes for subsequent method calls
 /// </summary>
 /// <param name="steamWebApiKey"></param>
 public TFItems(string steamWebApiKey, ISteamWebInterface steamWebInterface = null)
 {
     this.steamWebInterface = steamWebInterface == null
         ? new SteamWebInterface(steamWebApiKey, "ITFItems_440")
         : steamWebInterface;
 }
Пример #17
0
 /// <summary>
 /// Default constructor established the Steam Web API key and initializes for subsequent method calls
 /// </summary>
 /// <param name="steamWebApiKey"></param>
 public DOTA2Fantasy(ISteamWebRequest steamWebRequest, ISteamWebInterface steamWebInterface = null)
 {
     this.steamWebInterface = steamWebInterface == null
         ? new SteamWebInterface("IDOTA2Fantasy_570", steamWebRequest)
         : steamWebInterface;
 }
Пример #18
0
 /// <summary>
 /// Default constructor established the Steam Web API key and initializes for subsequent method calls
 /// </summary>
 /// <param name="steamWebRequest"></param>
 public SteamUserAuth(ISteamWebRequest steamWebRequest, ISteamWebInterface steamWebInterface = null)
 {
     this.steamWebInterface = steamWebInterface == null
         ? new SteamWebInterface("ISteamUserAuth", steamWebRequest)
         : steamWebInterface;
 }
Пример #19
0
 /// <summary>
 /// Default constructor established the Steam Web API key and initializes for subsequent method calls
 /// </summary>
 /// <param name="steamWebApiKey"></param>
 public SteamEconomy(ISteamWebRequest steamWebRequest, ISteamWebInterface steamWebInterface = null)
 {
     this.steamWebInterface = steamWebInterface == null
         ? new SteamWebInterface("ISteamEconomy", steamWebRequest)
         : steamWebInterface;
 }
Пример #20
0
 /// <summary>
 /// Default constructor established the Steam Web API key and initializes for subsequent method calls
 /// </summary>
 /// <param name="steamWebApiKey"></param>
 public GameServersService(string steamWebApiKey, ISteamWebInterface steamWebInterface = null)
 {
     this.steamWebInterface = steamWebInterface == null
         ? new SteamWebInterface(steamWebApiKey, "IGameServersService")
         : steamWebInterface;
 }
Пример #21
0
 /// <summary>
 /// Default constructor established the Steam Web API key and initializes for subsequent method calls
 /// </summary>
 /// <param name="steamWebApiKey"></param>
 public SteamUserAuth(string steamWebApiKey, ISteamWebInterface steamWebInterface = null)
 {
     this.steamWebInterface = steamWebInterface == null
         ? new SteamWebInterface(steamWebApiKey, "ISteamUserAuth")
         : steamWebInterface;
 }
Пример #22
0
 /// <summary>
 /// Default constructor established the Steam Web API key and initializes for subsequent method calls
 /// </summary>
 /// <param name="steamWebApiKey"></param>
 public DOTA2Ticket(string steamWebApiKey, ISteamWebInterface steamWebInterface = null)
 {
     this.steamWebInterface = steamWebInterface == null
         ? new SteamWebInterface(steamWebApiKey, "IDOTA2Ticket_570")
         : steamWebInterface;
 }
Пример #23
0
 /// <summary>
 /// Default constructor established the Steam Web API key and initializes for subsequent method calls
 /// </summary>
 /// <param name="steamWebApiKey"></param>
 public CSGOServers(string steamWebApiKey, ISteamWebInterface steamWebInterface = null)
 {
     this.steamWebInterface = steamWebInterface == null
         ? new SteamWebInterface(steamWebApiKey, "ICSGOServers_730")
         : steamWebInterface;
 }
Пример #24
0
 /// <summary>
 /// Default constructor established the Steam Web API key and initializes for subsequent method calls
 /// </summary>
 /// <param name="steamWebRequest"></param>
 public SteamNews(ISteamWebRequest steamWebRequest, ISteamWebInterface steamWebInterface = null)
 {
     this.steamWebInterface = steamWebInterface == null
         ? new SteamWebInterface("ISteamNews", steamWebRequest)
         : steamWebInterface;
 }
Пример #25
0
 /// <summary>
 /// Default constructor established the Steam Web API key and initializes for subsequent method calls
 /// </summary>
 /// <param name="steamWebRequest"></param>
 public DOTA2Ticket(ISteamWebRequest steamWebRequest, ISteamWebInterface steamWebInterface = null)
 {
     this.steamWebInterface = steamWebInterface == null
         ? new SteamWebInterface("IDOTA2Ticket_570", steamWebRequest)
         : steamWebInterface;
 }
Пример #26
0
 /// <summary>
 /// Default constructor established the Steam Web API key and initializes for subsequent method calls
 /// </summary>
 /// <param name="steamWebApiKey"></param>
 public PlayerService(string steamWebApiKey, ISteamWebInterface steamWebInterface = null)
 {
     this.steamWebInterface = steamWebInterface == null
         ? new SteamWebInterface(steamWebApiKey, "IPlayerService")
         : steamWebInterface;
 }
Пример #27
0
 /// <summary>
 /// Default constructor established the Steam Web API key and initializes for subsequent method calls
 /// </summary>
 /// <param name="steamWebApiKey"></param>
 public DOTA2Fantasy(string steamWebApiKey, ISteamWebInterface steamWebInterface = null)
 {
     this.steamWebInterface = steamWebInterface == null
         ? new SteamWebInterface(steamWebApiKey, "IDOTA2Fantasy_570")
         : steamWebInterface;
 }
Пример #28
0
 /// <summary>
 /// Default constructor established the Steam Web API key and initializes for subsequent method calls
 /// </summary>
 /// <param name="steamWebRequest"></param>
 public SteamRemoteStorage(ISteamWebRequest steamWebRequest, ISteamWebInterface steamWebInterface = null)
 {
     this.steamWebInterface = steamWebInterface == null
         ? new SteamWebInterface("ISteamRemoteStorage", steamWebRequest)
         : steamWebInterface;
 }
Пример #29
0
 /// <summary>
 /// Default constructor established the Steam Web API key and initializes for subsequent method calls
 /// </summary>
 /// <param name="steamWebApiKey"></param>
 public SteamEconomy(string steamWebApiKey, ISteamWebInterface steamWebInterface = null)
 {
     this.steamWebInterface = steamWebInterface == null
         ? new SteamWebInterface(steamWebApiKey, "ISteamEconomy")
         : steamWebInterface;
 }
Пример #30
0
 /// <summary>
 /// Default constructor established the Steam Web API key and initializes for subsequent method calls
 /// </summary>
 /// <param name="steamWebRequest"></param>
 public SteamWebAPIUtil(ISteamWebRequest steamWebRequest, ISteamWebInterface steamWebInterface = null)
 {
     this.steamWebInterface = steamWebInterface == null
         ? new SteamWebInterface("ISteamWebAPIUtil", steamWebRequest)
         : steamWebInterface;
 }