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); }
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)); }
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)); }
public bool IsInProgress <TRequest>(PlayerId playerId) where TRequest : CommandExternal { return(_inProgress.Exists(_ => ReferenceEquals(typeof(TRequest), _.RequestType) && playerId.Equals(_.PlayerId))); }
public bool Equals(Player other) { return(ServerId.Equals(other.ServerId) && PlayerId.Equals(other.PlayerId)); }
public override bool Equals(object obj) { var other = obj as Player; return(PlayerId.Equals(other?.PlayerId)); }
public bool Equals(Player other) { return(Name.Equals(other.Name) && PlayerId.Equals(other.PlayerId)); }