QMonReceiverHandler.cs 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. using Quadarax.Foundation.Core.QMonitor.Interfaces;
  2. using Quadarax.Foundation.Core.Object;
  3. namespace Quadarax.Foundation.Core.QMonitor
  4. {
  5. public class QMonReceiverHandler : DisposableObject, IReceiverHandler
  6. {
  7. #region *** PRoperties ***
  8. public string InstanceIdentifier { get; }
  9. public MonItemGeneral Descriptor { get; }
  10. public ReceiverHandlerStateEnum State => throw new NotImplementedException();
  11. public bool IsLiveBroadcast => throw new NotImplementedException();
  12. public DateTime Timestamp => throw new NotImplementedException();
  13. public event ReceiverHandlerDataChanged? DataChanged;
  14. #endregion
  15. #region *** Constructor ***
  16. internal QMonReceiverHandler(string instanceIdentifier, MonItemGeneral descriptor)
  17. {
  18. if(string.IsNullOrEmpty(instanceIdentifier)) throw new ArgumentNullException(nameof(instanceIdentifier));
  19. InstanceIdentifier = instanceIdentifier;
  20. Descriptor = descriptor ?? throw new ArgumentNullException(nameof(descriptor));
  21. }
  22. #endregion
  23. #region *** Public Operations ***
  24. public DateTime? GetFirstAvailableDataTimestamp()
  25. {
  26. throw new NotImplementedException();
  27. }
  28. public void Play(bool isLive)
  29. {
  30. throw new NotImplementedException();
  31. }
  32. public void Record()
  33. {
  34. throw new NotImplementedException();
  35. }
  36. public void Rewind(TimeSpan? duration = null, bool isBackward = false)
  37. {
  38. throw new NotImplementedException();
  39. }
  40. public void Stop()
  41. {
  42. throw new NotImplementedException();
  43. }
  44. #endregion
  45. #region *** Private Operations ***
  46. protected override void OnDisposing()
  47. {
  48. DataChanged = null;
  49. }
  50. #endregion
  51. }
  52. }