Exemple #1
0
 public PrimaryAccountMap(bool defaultMap)
 {
     this._id = this.id;
     if (defaultMap)
     {
         this._email    = "";
         this._username = "";
         this._password = "";
         functionality func = new functionality();
         this._salt           = func.randomCharacterSet(20);
         this._memberLevel    = membership.Unverified;
         this._adminTrust     = administrativeTrust.Unknown;
         this._accountBalance = 0.00m;
         this._coinBankVal1   = "";
         this._coinBankVal2   = "";
     }
     else
     {
         this._email          = this.email;
         this._username       = this.username;
         this._password       = this.password;
         this._salt           = this.salt;
         this._memberLevel    = this.memberLevel;
         this._adminTrust     = this.adminTrust;
         this._accountBalance = this.accountBalance;
         this._coinBankVal1   = this.coinBankVal1;
         this._coinBankVal2   = this.coinBankVal2;
     }
 }
Exemple #2
0
 public PrimaryAccountMap(bool defaultMap)
 {
     this._id = this.id;
     if (defaultMap)
     {
         this._email = "";
         this._username = "";
         this._password = "";
         functionality func = new functionality();
         this._salt = func.randomCharacterSet(20);
         this._memberLevel = membership.Unverified;
         this._adminTrust = administrativeTrust.Unknown;
         this._accountBalance = 0.00m;
         this._coinBankVal1 = "";
         this._coinBankVal2 = "";
     }
     else
     {
         this._email = this.email;
         this._username = this.username;
         this._password = this.password;
         this._salt = this.salt;
         this._memberLevel = this.memberLevel;
         this._adminTrust = this.adminTrust;
         this._accountBalance = this.accountBalance;
         this._coinBankVal1 = this.coinBankVal1;
         this._coinBankVal2 = this.coinBankVal2;
     }
 }
Exemple #3
0
 public PrimaryAccountMap()
 {
     this._id             = this.id;
     this._email          = this.email;
     this._username       = this.username;
     this._password       = this.password;
     this._salt           = this.salt;
     this._memberLevel    = this.memberLevel;
     this._adminTrust     = this.adminTrust;
     this._accountBalance = this.accountBalance;
     this._coinBankVal1   = this.coinBankVal1;
     this._coinBankVal2   = this.coinBankVal2;
 }
Exemple #4
0
 public PrimaryAccountMap()
 {
     this._id = this.id;
      this._email = this.email;
      this._username = this.username;
      this._password = this.password;
      this._salt = this.salt;
      this._memberLevel = this.memberLevel;
      this._adminTrust = this.adminTrust;
      this._accountBalance = this.accountBalance;
      this._coinBankVal1 = this.coinBankVal1;
      this._coinBankVal2 = this.coinBankVal2;
 }
Exemple #5
0
    public string adminTrustEnumToString(administrativeTrust value)
    {
        switch (value)
        {
        case administrativeTrust.Banned:
            return("Banned");

        case administrativeTrust.Unknown:
            return("Unknown");

        case administrativeTrust.Low:
            return("Low");

        case administrativeTrust.Medium:
            return("Medium");

        case administrativeTrust.High:
            return("High");

        default:
            return("NULL");
        }
    }