public bool Equals(TextContribution other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Id == other.Id); }
/// <summary> /// Creates a complete text contribution entity. /// </summary> /// <param name="id">The unique Id of the contribution entity.</param> /// <param name="incompleteContribution">The extra details of the <see cref="TextContribution" />.</param> public TextContribution(int id, TextContribution incompleteContribution) : this(incompleteContribution.ContributorUserId, incompleteContribution.Message, incompleteContribution.ConversationId) { Id = id; ContributionTimeStamp = DateTime.Now; }
public bool Equals(TextContribution other) { return(Id == other.Id); }