//private Dictionary<string, int>


        public PanelPlayer(string name, string account_id, RootAccountIDObject accountObj,
                           RootNormalStatsObject normalStatsObj, RootRankedStatsObject rankedStatsObj)
        {
            this.Name           = name;
            this.AccountID      = account_id;
            this.AccountObj     = accountObj;
            this.NormalStatsObj = normalStatsObj;
            this.RankedStatsObj = rankedStatsObj;
        }
Esempio n. 2
0
        public static Tuple <RootNormalStatsObject, int> ParseNormalSeasonStats(Tuple <string, int> pair)
        {
            if (pair == null)
            {
                return(null);
            }

            else if (pair.Item1 == null)
            {
                Tuple <RootNormalStatsObject, int> error = Tuple.Create <RootNormalStatsObject, int>(null, pair.Item2);
                return(error);
            }
            if (pair != null)
            {
                RootNormalStatsObject obj = JsonConvert.DeserializeObject <RootNormalStatsObject>(pair.Item1);
                Tuple <RootNormalStatsObject, int> response = Tuple.Create(obj, pair.Item2);

                return(response);
            }
            else
            {
                return(null);
            }
        }
 public RightPlayer(string name, string account_id, RootAccountIDObject accountObj,
                    RootNormalStatsObject normalStatsObj, RootRankedStatsObject rankedStatsObj) : base(name, account_id, accountObj,
                                                                                                       normalStatsObj, rankedStatsObj)
 {
 }