示例#1
0
        public bool Equals(TextContribution other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return(Id == other.Id);
        }
示例#2
0
 /// <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;
 }
示例#3
0
 public bool Equals(TextContribution other)
 {
     return(Id == other.Id);
 }