Exemplo n.º 1
0
 public void MergeFrom(PhoneCallEnded other)
 {
     if (other == null)
     {
         return;
     }
     if (other.JWToken.Length != 0)
     {
         JWToken = other.JWToken;
     }
     if (other.RawMsg.Length != 0)
     {
         RawMsg = other.RawMsg;
     }
     if (other.msgReceivedAt_ != null)
     {
         if (msgReceivedAt_ == null)
         {
             msgReceivedAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         MsgReceivedAt.MergeFrom(other.MsgReceivedAt);
     }
     if (other.mitelCallEnded_ != null)
     {
         if (mitelCallEnded_ == null)
         {
             mitelCallEnded_ = new global::HOLMS.Types.PBXConnector.MitelCallEnded();
         }
         MitelCallEnded.MergeFrom(other.MitelCallEnded);
     }
 }
Exemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (JWToken.Length != 0)
            {
                hash ^= JWToken.GetHashCode();
            }
            if (RawMsg.Length != 0)
            {
                hash ^= RawMsg.GetHashCode();
            }
            if (msgReceivedAt_ != null)
            {
                hash ^= MsgReceivedAt.GetHashCode();
            }
            if (mitelCallEnded_ != null)
            {
                hash ^= MitelCallEnded.GetHashCode();
            }
            return(hash);
        }