コード例 #1
0
        public MatchesBase(IInternalService internalService, IWebsiteService website, IMatchesTabService matchesTab, GameMode matchGameMode, MatchesTab currentTab)
            : base(internalService)
        {
            Website           = website;
            MatchesTabService = matchesTab;
            MatchGameMode     = matchGameMode;
            CurrentTab        = currentTab;

            ShowMatchSummaryButtonEnabled = true;

            SeasonList.Add("Lifetime");
            SeasonList.AddRange(HeroesHelpers.Seasons.GetSeasonList());
            SelectedSeasonOption = SeasonList[0];

            GameTimeList           = HeroesHelpers.GameDates.GameTimeList;
            SelectedGameTimeOption = GameTimeList[0];

            GameDateList           = HeroesHelpers.GameDates.GameDateList;
            SelectedGameDateOption = GameDateList[0];

            MapsList.Add("Any");
            MapsList.AddRange(HeroesIcons.MapBackgrounds().GetMapsList());
            SelectedMapOption = MapsList[0];

            ReplayBuildsList.Add("Any");
            ReplayBuildsList.AddRange(HeroesHelpers.Builds.GetBuildsList(HeroesIcons));
            SelectedBuildOption = ReplayBuildsList[0];

            HeroesList.Add("Any");
            HeroesList.AddRange(HeroesIcons.Heroes().GetListOfHeroes(HeroesIcons.GetLatestHeroesBuild()));
            SelectedCharacter = HeroesList[0];

            Messenger.Default.Register <MatchesDataMessage>(this, (message) => ReceivedMatchSearchData(message));
            Messenger.Default.Register <NotificationMessage>(this, async(message) => await ReceivedMessageAsync(message));
        }
コード例 #2
0
        public MatchesBase(IInternalService internalService, IWebsiteService website, IMatchesTabService matchesTab, GameMode matchGameMode, MatchesTab currentTab)
            : base(internalService)
        {
            Website           = website;
            MatchesTabService = matchesTab;
            MatchGameMode     = matchGameMode;
            CurrentTab        = currentTab;

            ShowMatchSummaryButtonEnabled = true;

            SeasonList.AddRange(HeroesHelpers.Seasons.GetSeasonList());
            SelectedSeasonOption = SeasonList[0];

            GameTimeList           = HeroesHelpers.GameDateFilters.GameTimeList;
            SelectedGameTimeOption = FilterGameTimeOption.Any.GetFriendlyName();

            GameDateList           = HeroesHelpers.GameDateFilters.GameDateList;
            SelectedGameDateOption = FilterGameDateOption.Any.GetFriendlyName();

            MapsList.Add("Any");
            MapsList.AddRange(HeroesIcons.Battlegrounds().Battlegrounds(true).Select(x => x.Name).ToList());
            SelectedMapOption = MapsList[0];

            ReplayBuildsList.Add("Any");
            ReplayBuildsList.AddRange(HeroesIcons.HeroBuilds().Builds);
            SelectedBuildOption = ReplayBuildsList[0];

            HeroesList.Add("Any");
            HeroesList.AddRange(HeroesIcons.HeroesData().HeroNames().OrderBy(x => x).ToList());
            SelectedCharacter = HeroesList[0];

            PartyCountList.Add("Any");
            PartyCountList.AddRange(HeroesHelpers.Parties.GetPartyList());
            SelectedParty = PartyCountList[0];

            SelectedAccountLevel = 0;

            Messenger.Default.Register <MatchesDataMessage>(this, (message) => ReceivedMatchSearchData(message));
            Messenger.Default.Register <NotificationMessage>(this, async(message) => await ReceivedMessageAsync(message));
        }
コード例 #3
0
 public UnrankedDraftViewModel(IInternalService internalService, IWebsiteService website, IMatchesTabService matchesTab)
     : base(internalService, website, matchesTab, GameMode.UnrankedDraft, MatchesTab.UnrankedDraft)
 {
 }
コード例 #4
0
 public AllMatchesViewModel(IInternalService internalService, IWebsiteService website, IMatchesTabService matchesTab)
     : base(internalService, website, matchesTab, GameMode.Brawl | GameMode.Custom | GameMode.HeroLeague | GameMode.QuickMatch | GameMode.TeamLeague | GameMode.UnrankedDraft, MatchesTab.AllMatches)
 {
 }
コード例 #5
0
 public TeamLeagueViewModel(IInternalService internalService, IWebsiteService website, IMatchesTabService matchesTab)
     : base(internalService, website, matchesTab, GameMode.TeamLeague, MatchesTab.TeamLeague)
 {
 }
コード例 #6
0
 public BrawlViewModel(IInternalService internalService, IWebsiteService website, IMatchesTabService matchesTab)
     : base(internalService, website, matchesTab, GameMode.Brawl, MatchesTab.Brawl)
 {
 }
コード例 #7
0
 public CustomGameViewModel(IInternalService internalService, IWebsiteService website, IMatchesTabService matchesTab)
     : base(internalService, website, matchesTab, GameMode.Custom, MatchesTab.Custom)
 {
 }
コード例 #8
0
 public QuickMatchViewModel(IInternalService internalService, IWebsiteService website, IMatchesTabService matchesTab)
     : base(internalService, website, matchesTab, GameMode.QuickMatch, MatchesTab.QuickMatch)
 {
 }
コード例 #9
0
 public AllMatchesViewModel(IInternalService internalService, IWebsiteService website, IMatchesTabService matchesTab)
     : base(internalService, website, matchesTab, GameMode.AllGameModes, MatchesTab.AllMatches)
 {
 }
コード例 #10
0
 public ARAMViewModel(IInternalService internalService, IWebsiteService website, IMatchesTabService matchesTab)
     : base(internalService, website, matchesTab, GameMode.ARAM, MatchesTab.ARAM)
 {
 }