예제 #1
0
 public void MergeFrom(NoteRequestRoomTypes other)
 {
     if (other == null)
     {
         return;
     }
     if (other.entityId_ != null)
     {
         if (entityId_ == null)
         {
             entityId_ = new global::HOLMS.Types.Operations.NoteRequestsRoomTypes.NoteRequestRoomTypeIndicator();
         }
         EntityId.MergeFrom(other.EntityId);
     }
     if (other.noteRequestId_ != null)
     {
         if (noteRequestId_ == null)
         {
             noteRequestId_ = new global::HOLMS.Types.Operations.NoteRequests.NoteRequestIndicator();
         }
         NoteRequestId.MergeFrom(other.NoteRequestId);
     }
     if (other.roomTypeId_ != null)
     {
         if (roomTypeId_ == null)
         {
             roomTypeId_ = new global::HOLMS.Types.Supply.RoomTypes.RoomTypeIndicator();
         }
         RoomTypeId.MergeFrom(other.RoomTypeId);
     }
 }
예제 #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (entityId_ != null)
            {
                hash ^= EntityId.GetHashCode();
            }
            if (noteRequestId_ != null)
            {
                hash ^= NoteRequestId.GetHashCode();
            }
            if (roomTypeId_ != null)
            {
                hash ^= RoomTypeId.GetHashCode();
            }
            return(hash);
        }