public TopChampionMasteryRequest(Region region, long summonerId, int limit = 1)
 {
     this.region     = RegionUtility.RegionToString(region);
     platformId      = RegionUtility.RegionToPlatformId(region);
     this.summonerId = summonerId;
     this.limit      = limit;
 }
Exemplo n.º 2
0
        // GET: Home
        public ActionResult Index(string error = "")
        {
            HomePageViewModel viewModel = new HomePageViewModel()
            {
                Error            = error,
                AvailableRegions = new SelectList(RegionUtility.AllRegionsWithNames(), "value", "key")
            };

            return(View(viewModel));
        }
Exemplo n.º 3
0
        private TabClientProxy CreateProxy(object view)
        {
            var proxy = new TabClientProxy
            {
                Content    = view,
                CommonData = RegionUtility.GetInterfaceFromView <ICommonData>(view)
            };

            this.itemToTabClientMapping.Add(view, proxy);

            return(proxy);
        }
Exemplo n.º 4
0
 public RecentGamesRequest(Region region, long summonerId)
 {
     this.region     = RegionUtility.RegionToString(region);
     this.summonerId = summonerId;
 }
 public GetSummonerByNameRequest(Region region, string summonerName)
 {
     this.region       = RegionUtility.RegionToString(region);
     this.summonerName = summonerName;
 }
Exemplo n.º 6
0
 public GameVersionsRequest(Region region)
 {
     this.region = RegionUtility.RegionToString(region);
 }
Exemplo n.º 7
0
 public GetSummonerRequest(Region region, long summonerId)
 {
     this.region     = RegionUtility.RegionToString(region);
     this.summonerId = summonerId;
 }
Exemplo n.º 8
0
 public AllChampionsRequest(Region region)
 {
     this.region = RegionUtility.RegionToString(region);
 }