Ejemplo n.º 1
0
 internal Account(AccountDatabase db, long id, string name, AccessFlag permissions)
 {
     mDB            = db;
     CharacterId    = id;
     mCharacterName = name;
     Permissions    = permissions;
 }
Ejemplo n.º 2
0
        internal Account(AccountDatabase db, SQLiteDataReader reader)
        {
            mDB = db;

            CharacterId    = reader.GetInt64(0);
            mCharacterName = reader.GetString(1);
            mAccessToken   = reader.GetString(2);
            mExpires       = reader.GetDateTime(3);
            mRefreshToken  = reader.GetString(4);
            mUnreadCount   = reader.GetInt32(5);
            Permissions    = (AccessFlag)reader.GetInt32(6);
            mLastMailId    = reader.IsDBNull(7) ? -1: reader.GetInt64(7);
            mExpanded      = reader.GetBoolean(8);
        }