DMUnknownBluetoothTag.cs 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. namespace InABox.DigitalMatter
  2. {
  3. public abstract class DMUnknownBluetoothTag : DMBluetoothTag
  4. {
  5. public byte[] Payload { get; set; }
  6. public override string ID()
  7. {
  8. return "N/A";
  9. }
  10. protected override void DoDecode(IDMReadBuffer buffer)
  11. {
  12. Payload = buffer.TakeBytes(DataLength);
  13. }
  14. protected override void DoEncode(IDMWriteBuffer buffer)
  15. {
  16. buffer.AddBytes(Payload);
  17. }
  18. }
  19. public class DMEddystoneBluetoothTag : DMUnknownBluetoothTag
  20. {
  21. public override string Type()
  22. {
  23. return "Eddystone";
  24. }
  25. }
  26. public class DMIngicsiBS01BasicBluetoothTag : DMUnknownBluetoothTag
  27. {
  28. public override string Type()
  29. {
  30. return "Ingics iBS01 Basic";
  31. }
  32. }
  33. public class DMIngicsiBS01TemperatureBluetoothTag : DMUnknownBluetoothTag
  34. {
  35. public override string Type()
  36. {
  37. return "Ingics iBS01 Temperature";
  38. }
  39. }
  40. public class DMEddystoneTLMBluetoothTag : DMUnknownBluetoothTag
  41. {
  42. public override string Type()
  43. {
  44. return "Eddystone TLM";
  45. }
  46. }
  47. public class DMTechnotonES7BluetoothTag : DMUnknownBluetoothTag
  48. {
  49. public override string Type()
  50. {
  51. return "Technoton ES7";
  52. }
  53. }
  54. public class DMGeoboxTPMSBluetoothTag : DMUnknownBluetoothTag
  55. {
  56. public override string Type()
  57. {
  58. return "Geobox TPMS";
  59. }
  60. }
  61. public class DMEscortFuelBluetoothTag : DMUnknownBluetoothTag
  62. {
  63. public override string Type()
  64. {
  65. return "Escort Fuel Sensor";
  66. }
  67. }
  68. public class DMIngicsiBS04BluetoothTag : DMUnknownBluetoothTag
  69. {
  70. public override string Type()
  71. {
  72. return "Ingics iBS04";
  73. }
  74. }
  75. }