Esempio n. 1
0
 /// <summary>
 /// Returns a string that represents the current object.
 /// </summary>
 /// <returns>
 /// A string that represents the current object.
 /// </returns>
 public override string ToString()
 {
     return(string.Format(
                "Response #{0} received at {1}: bucket '{2}' with {3} isTryout {4}. ",
                ResponseID,
                ReceivedTime.ToString("d/MMM/yyyy H:mm:ss", CultureInfo.InvariantCulture),
                Bucket,
                Grammar.Number(ModelOutputs.Count, "model"),
                IsTryOut
                ));
 }         // ToString
Esempio n. 2
0
 public override string ToString()
 {
     if (Status == MsgStatus.Received)
     {
         return($"{Status} from: {ReceivedFrom}/{ReceivedTime.ToString("dd/MM/yyyy HH:mm:ss")}/{Text}");
     }
     else
     {
         return($"{Status} to: {SendTo}/{SentTime.ToString("dd/MM/yyyy HH:mm:ss")}/{Text}");
     }
 }
Esempio n. 3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (receivedTime_ != null)
            {
                hash ^= ReceivedTime.GetHashCode();
            }
            if (listType_ != null)
            {
                hash ^= ListType.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Esempio n. 4
0
 public void MergeFrom(TheRecord other)
 {
     if (other == null)
     {
         return;
     }
     if (other.receivedTime_ != null)
     {
         if (receivedTime_ == null)
         {
             receivedTime_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         ReceivedTime.MergeFrom(other.ReceivedTime);
     }
     if (other.listType_ != null)
     {
         if (listType_ == null || other.ListType != 0)
         {
             ListType = other.ListType;
         }
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }