Exemple #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (postedTime_ != null)
            {
                hash ^= PostedTime.GetHashCode();
            }
            if (Narration.Length != 0)
            {
                hash ^= Narration.GetHashCode();
            }
            hash ^= lines_.GetHashCode();
            if (assignedGuest_ != null)
            {
                hash ^= AssignedGuest.GetHashCode();
            }
            if (EnteredByUserId.Length != 0)
            {
                hash ^= EnteredByUserId.GetHashCode();
            }
            if (IsManualEntry != false)
            {
                hash ^= IsManualEntry.GetHashCode();
            }
            if (id_ != null)
            {
                hash ^= Id.GetHashCode();
            }
            return(hash);
        }
Exemple #2
0
 public void MergeFrom(AccountingTransactionWithGuest other)
 {
     if (other == null)
     {
         return;
     }
     if (other.postedTime_ != null)
     {
         if (postedTime_ == null)
         {
             postedTime_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         PostedTime.MergeFrom(other.PostedTime);
     }
     if (other.Narration.Length != 0)
     {
         Narration = other.Narration;
     }
     lines_.Add(other.lines_);
     if (other.assignedGuest_ != null)
     {
         if (assignedGuest_ == null)
         {
             assignedGuest_ = new global::HOLMS.Types.CRM.Guests.Guest();
         }
         AssignedGuest.MergeFrom(other.AssignedGuest);
     }
     if (other.EnteredByUserId.Length != 0)
     {
         EnteredByUserId = other.EnteredByUserId;
     }
     if (other.IsManualEntry != false)
     {
         IsManualEntry = other.IsManualEntry;
     }
     if (other.id_ != null)
     {
         if (id_ == null)
         {
             id_ = new global::HOLMS.Types.Primitive.Uuid();
         }
         Id.MergeFrom(other.Id);
     }
 }