Пример #1
0
 public bool Equals(Question other)
 {
     return(other != null &&
            Id.Equals(other.Id) &&
            PlayerId.Equals(other.PlayerId) &&
            Title == other.Title &&
            Text == other.Text &&
            SequenceNumber == other.SequenceNumber);
 }
Пример #2
0
        public override bool Equals(object?obj)
        {
            if (!(obj is WinPointEvent target))
            {
                return(false);
            }

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

            return(Equals(this, target) && TeamId.Equals(target.TeamId) && PlayerId.Equals(target.PlayerId) &&
                   NewScore.Equals(target.NewScore) && NewStatus.Equals(target.NewStatus));
        }
Пример #3
0
        public virtual bool equals(object o)
        {
            if (this == o)
            {
                return(true);
            }
            if (o == null || !this.GetType().Equals(o.GetType()))
            {
                return(false);
            }

            Entity entity = (Entity)o;

            if (!owner.Equals(entity.owner))
            {
                return(false);
            }
            if (!id.Equals(entity.id))
            {
                return(false);
            }
            return(position.Equals(entity.position));
        }
Пример #4
0
 public bool IsInProgress <TRequest>(PlayerId playerId) where TRequest : CommandExternal
 {
     return(_inProgress.Exists(_ => ReferenceEquals(typeof(TRequest), _.RequestType) && playerId.Equals(_.PlayerId)));
 }
Пример #5
0
 public bool Equals(Player other)
 {
     return(ServerId.Equals(other.ServerId) && PlayerId.Equals(other.PlayerId));
 }
Пример #6
0
        public override bool Equals(object obj)
        {
            var other = obj as Player;

            return(PlayerId.Equals(other?.PlayerId));
        }
Пример #7
0
 public bool Equals(Player other)
 {
     return(Name.Equals(other.Name) && PlayerId.Equals(other.PlayerId));
 }