Exemple #1
0
        public void DeleteParticipant(PotUser potUser)
        {
            if (Id != potUser.PotId)
            {
                return;
            }

            if (_participants.Contains(potUser))
            {
                _participants.Remove(potUser);
            }
        }
Exemple #2
0
        public void AddParticipant(PotUser potUser)
        {
            if (Id != potUser.PotId)
            {
                return;
            }

            if (!_participants.Contains(potUser))
            {
                _participants.Add(potUser);
            }
        }
Exemple #3
0
        public bool Equals(PotUser otherPotUser)
        {
            if (otherPotUser == null)
            {
                return(false);
            }

            if (ReferenceEquals(this, otherPotUser))
            {
                return(true);
            }

            return(PotId == otherPotUser.PotId && UserId == otherPotUser.UserId);
        }
Exemple #4
0
 internal PotUser(PotUser potUser)
     : this(potUser.UserId, potUser.PotId, potUser.HasPayed, potUser.Amount, potUser.TargetAmount,
            potUser.HasCancelled, potUser.CancellationReason, potUser.HasValidated, potUser.ModificationDate)
 {
 }