コード例 #1
0
ファイル: AccountManager.cs プロジェクト: wow4all/mooege
        public static Account CreateAccount(string email, string password, Account.UserLevels userLevel = Account.UserLevels.User)
        {
            var account = new Account(email, password, userLevel);
            Accounts.Add(email, account);
            account.SaveToDB();

            return account;
        }
コード例 #2
0
ファイル: AccountManager.cs プロジェクト: rosebud/mooege
        public static Account CreateAccount(string email, string password)
        {
            var account = new Account(email, password);
            Accounts.Add(email, account);
            account.SaveToDB();

            return account;
        }
コード例 #3
0
ファイル: AccountManager.cs プロジェクト: God601/mooege
        public static Account CreateAccount(string email, string password, string battleTag, Account.UserLevels userLevel = Account.UserLevels.User)
        {
            var hashCode = AccountManager.GetUnusedHashCodeForBattleTag(battleTag);
            var account = new Account(email, password, battleTag, hashCode, userLevel);
            Accounts.Add(email, account);
            account.SaveToDB();

            return account;
        }
コード例 #4
0
ファイル: AccountManager.cs プロジェクト: yg7845333/mooege
        public static Account CreateAccount(string email, string password, Account.UserLevels userLevel = Account.UserLevels.User)
        {
            var account = new Account(email, password, userLevel);

            Accounts.Add(email, account);
            account.SaveToDB();

            return(account);
        }
コード例 #5
0
ファイル: AccountManager.cs プロジェクト: cduran/mooege
        public static Account CreateAccount(string email, string password, string battleTag, Account.UserLevels userLevel = Account.UserLevels.User)
        {
            var hashCode = AccountManager.GetUnusedHashCodeForBattleTag(battleTag);
            var account  = new Account(email, password, battleTag, hashCode, userLevel);

            Accounts.Add(email, account);
            account.SaveToDB();

            return(account);
        }
コード例 #6
0
ファイル: AccountManager.cs プロジェクト: Rianon/mooege
        public static Account GetAccountByEmail(string email)
        {
            Account account;

            if (Accounts.ContainsKey(email))
                account = Accounts[email];
            else
            {
                account = new Account(email);
                Accounts.Add(email, account);
                account.SaveToDB();
            }

            return account;
        }