FieldDefinition.cs 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. ///
  27. /// </summary>
  28. public class FieldDefinition
  29. {
  30. #region Fields
  31. #endregion
  32. #region Properties
  33. // Opt for the simpler form until we need a backing field
  34. public byte Num { get; set; }
  35. public byte Size { get; set; }
  36. public byte Type { get; set; }
  37. #endregion
  38. #region Constructors
  39. public FieldDefinition()
  40. {
  41. }
  42. public FieldDefinition(Field field)
  43. {
  44. Num = field.Num;
  45. Size = field.GetSize();
  46. Type = field.Type;
  47. }
  48. public FieldDefinition(byte newNum, byte newSize, byte newType)
  49. {
  50. Num = newNum;
  51. Size = newSize;
  52. Type = newType;
  53. }
  54. public FieldDefinition(FieldDefinition fieldDef)
  55. {
  56. Num = fieldDef.Num;
  57. Size = fieldDef.Size;
  58. Type = fieldDef.Type;
  59. }
  60. #endregion
  61. #region Methods
  62. #endregion
  63. }
  64. } // namespace