VersionResponse.cs 704 B

123456789101112131415161718192021222324
  1. using ProGauge_StartItaliana_Probe.MessageEntity.Outgoing;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. namespace ProGauge_StartItaliana_Probe.MessageEntity.Incoming
  7. {
  8. public class VersionResponse
  9. {
  10. public string VersionRawStr { get; private set; }
  11. /// <summary>
  12. ///
  13. /// </summary>
  14. /// <param name="raw">Each number is referred to a temperature sensor inside the probe.</param>
  15. public static VersionResponse Parse(byte[] raw)
  16. {
  17. var response = new VersionResponse();
  18. response.VersionRawStr = Encoding.ASCII.GetString(raw);
  19. return response;
  20. }
  21. }
  22. }