Exemplo n.º 1
0
        public bool IsPendingAccount(long accountId, out GroupAccountFlags flags)
        {
            lock (this)
            {
                if (_pendingAccounts.TryGetValue(accountId, out var f))
                {
                    flags = f;
                    return(true);
                }
            }

            flags = GroupAccountFlags.None;
            return(false);
        }
Exemplo n.º 2
0
 public GroupAdministrationRequest UpdateFlags(long accountId, GroupAccountFlags accountFlags)
 {
     _updatedFlags.Add(accountId, accountFlags);
     return(this);
 }
Exemplo n.º 3
0
 public GroupAdministrationRequest ApproveAccountAsAdmin(long accountId, GroupAccountFlags flags = GroupAccountFlags.None)
 {
     _addAccounts[accountId] = GroupAccountFlags.HasAdminApproval | flags;
     return(this);
 }