Пример #1
0
 public Account(string steamId64, string login, string password, string nickname,
                string steamPicture, int vacCount, D2Rank d2Rank, CSRank cSRank)
 {
     this.login        = login;
     this.password     = password;
     this.steamId64    = steamId64;
     this.nickname     = nickname;
     this.steamPicture = steamPicture;
     this.vacCount     = vacCount;
     this.d2Rank       = d2Rank;
     this.cSRank       = cSRank;
 }
Пример #2
0
 public Account(string nickname,
                string login,
                string password,
                string steamId64,
                string steamPicture,
                int vacCount,
                int d2rank, int d2star, int d2leaderRank,
                int csrank)
 {
     this.nickname     = nickname;
     this.login        = login;
     this.password     = password;
     this.steamId64    = steamId64;
     this.steamPicture = steamPicture;
     this.vacCount     = vacCount;
     this.d2Rank       = new D2Rank(d2rank, d2star, d2leaderRank);
     this.cSRank       = new CSRank(); //TODO
 }
Пример #3
0
        public Account(string steamId64, string login, string password)
        {
            this.login     = login;
            this.password  = password;
            this.steamId64 = steamId64;
            SteamParser steamParser = new SteamParser(steamId64);

            steamParser.parseAccInfo();
            steamParser.parseVacs();
            this.nickname     = steamParser.getNickname();
            this.steamPicture = steamParser.getSteamPicture();
            this.vacCount     = steamParser.getVacCount();
            Dota2RankParser d2RankParser = new Dota2RankParser(steamId64);

            d2RankParser.parseDota2Rank();
            this.d2Rank = d2RankParser.getD2Rank();
            CSGORankParser cSRankParser = new CSGORankParser(steamId64);

            cSRankParser.parseCSGORank();
            this.cSRank = cSRankParser.getCSRank();
        }