Example #1
0
 public void MergeFrom(UpdateTemperatureRequest other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Value != 0D)
     {
         Value = other.Value;
     }
     if (other.Init != 0)
     {
         Init = other.Init;
     }
 }
Example #2
0
 public void MergeFrom(TemperatureReply other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Value != 0D)
     {
         Value = other.Value;
     }
     if (other.Unit != 0)
     {
         Unit = other.Unit;
     }
 }
Example #3
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 9: {
                    Value = input.ReadDouble();
                    break;
                }

                case 16: {
                    init_ = (global::ThermometerService.Pb.Unit)input.ReadEnum();
                    break;
                }
                }
            }
        }