public RightPlayer(RootAccountIDObject accountObj) : base(accountObj)
        {
            this.AccountObj = accountObj;

            this.Name      = this.AccountObj.data[0].attributes.name.ToString();
            this.AccountID = this.AccountObj.data[0].id.ToString();
        }
        //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. 3
0
        public static Tuple <RootAccountIDObject, int> ParseAccountID(Tuple <string, int> pair)
        {
            if (pair == null)
            {
                return(null);
            }
            else if (pair.Item1 == null)
            {
                Tuple <RootAccountIDObject, int> error = Tuple.Create <RootAccountIDObject, int>(null, pair.Item2);
                return(error);
            }
            if (pair != null)
            {
                RootAccountIDObject obj = JsonConvert.DeserializeObject <RootAccountIDObject>(pair.Item1);
                Tuple <RootAccountIDObject, 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)
 {
 }