FileCreatorMesg.cs 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. #region Copyright
  2. ////////////////////////////////////////////////////////////////////////////////
  3. // The following FIT Protocol software provided may be used with FIT protocol
  4. // devices only and remains the copyrighted property of Dynastream Innovations Inc.
  5. // The software is being provided on an "as-is" basis and as an accommodation,
  6. // and therefore all warranties, representations, or guarantees of any kind
  7. // (whether express, implied or statutory) including, without limitation,
  8. // warranties of merchantability, non-infringement, or fitness for a particular
  9. // purpose, are specifically disclaimed.
  10. //
  11. // Copyright 2016 Dynastream Innovations Inc.
  12. ////////////////////////////////////////////////////////////////////////////////
  13. // ****WARNING**** This file is auto-generated! Do NOT edit this file.
  14. // Profile Version = 16.60Release
  15. // Tag = production-akw-16.60.00-0-g5d3d436
  16. ////////////////////////////////////////////////////////////////////////////////
  17. #endregion
  18. using System;
  19. using System.Collections.Generic;
  20. using System.Diagnostics;
  21. using System.Text;
  22. using System.IO;
  23. namespace Dynastream.Fit
  24. {
  25. /// <summary>
  26. /// Implements the FileCreator profile message.
  27. /// </summary>
  28. public class FileCreatorMesg : Mesg
  29. {
  30. #region Fields
  31. #endregion
  32. #region Constructors
  33. public FileCreatorMesg() : base(Profile.GetMesg(MesgNum.FileCreator))
  34. {
  35. }
  36. public FileCreatorMesg(Mesg mesg) : base(mesg)
  37. {
  38. }
  39. #endregion // Constructors
  40. #region Methods
  41. ///<summary>
  42. /// Retrieves the SoftwareVersion field</summary>
  43. /// <returns>Returns nullable ushort representing the SoftwareVersion field</returns>
  44. public ushort? GetSoftwareVersion()
  45. {
  46. return (ushort?)GetFieldValue(0, 0, Fit.SubfieldIndexMainField);
  47. }
  48. /// <summary>
  49. /// Set SoftwareVersion field</summary>
  50. /// <param name="softwareVersion_">Nullable field value to be set</param>
  51. public void SetSoftwareVersion(ushort? softwareVersion_)
  52. {
  53. SetFieldValue(0, 0, softwareVersion_, Fit.SubfieldIndexMainField);
  54. }
  55. ///<summary>
  56. /// Retrieves the HardwareVersion field</summary>
  57. /// <returns>Returns nullable byte representing the HardwareVersion field</returns>
  58. public byte? GetHardwareVersion()
  59. {
  60. return (byte?)GetFieldValue(1, 0, Fit.SubfieldIndexMainField);
  61. }
  62. /// <summary>
  63. /// Set HardwareVersion field</summary>
  64. /// <param name="hardwareVersion_">Nullable field value to be set</param>
  65. public void SetHardwareVersion(byte? hardwareVersion_)
  66. {
  67. SetFieldValue(1, 0, hardwareVersion_, Fit.SubfieldIndexMainField);
  68. }
  69. #endregion // Methods
  70. } // Class
  71. } // namespace