public GameListModule(IConfiguration configuration, GogInterface gogInterface, SteamInterface steamInterface, CachedWebClient <MapData> mapDataInterface)
 {
     queryUrl              = configuration["bigboat:battlezone_98_redux:sessions"];
     mapUrl                = configuration["bigboat:battlezone_98_redux:maps"];
     this.gogInterface     = gogInterface;
     this.steamInterface   = steamInterface;
     this.mapDataInterface = mapDataInterface;
 }
示例#2
0
        // Gets the FriendData of a specified person
        private async Task <ISteamWebResponse <IReadOnlyCollection <FriendModel> > > GetFriendModels(int AllHostIndex)
        {
            string SID64 = string.Empty;

            try
            {
                var x = SteamInterface.GetFriendsListAsync(Convert.ToUInt64(AllHosts[AllHostIndex]));
                SID64 = Convert.ToString(AllHosts[AllHostIndex]);
                return(await x);
            }

            catch (Exception hEx)
            {
                MessageBox.Show(SID64 + " ::ERROR:: " + hEx.Message);
                return(null);
            }
        }
示例#3
0
        private async Task <bool> GetPlayerSummaryModel(FriendModel friend)
        {
            try
            {
                //Task<ISteamWebResponse<PlayerSummaryModel>> y = null;
                var FriendPlayerSummary = await SteamInterface.GetPlayerSummaryAsync(friend.SteamId);

                if (FriendPlayerSummary.Data != null)
                {
                    AllPlayerSummaryModels.Add(FriendPlayerSummary);
                    return(true);
                }
                return(false);
            }

            catch (Exception hEx)
            {
                MessageBox.Show("ERROR when getting PlayerSummaryModels:: " + hEx.Message);
                return(false);
            }
        }
示例#4
0
 public GameListModule(IConfiguration configuration, GogInterface gogInterface, SteamInterface steamInterface)
 {
     queryUrl            = configuration["rebellion:battlezone_combat_commander"];
     this.gogInterface   = gogInterface;
     this.steamInterface = steamInterface;
 }