Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }