Esempio n. 1
0
        public void RevokeInvite(ClanMembership clanMemberShip, string personWhoInvitesBattleTag)
        {
            if (ChiefTain != personWhoInvitesBattleTag && !Shamans.Contains(personWhoInvitesBattleTag))
            {
                throw new ValidationException("Only chieftains and shamans can invite");
            }

            clanMemberShip.RevokeInvite();

            PendingInvites.Remove(clanMemberShip.BattleTag);
        }
Esempio n. 2
0
        public void RejectInvite(ClanMembership clanMemberShip)
        {
            clanMemberShip.RevokeInvite();

            PendingInvites.Remove(clanMemberShip.BattleTag);
        }