public override void Parse()
        {
            FrameId = (byte) parser.ReadByte();
            Address = parser.ReadAddress16();

            TransmitRetryCount = parser.ReadByte();
            DeliveryStatus = (DeliveryStatusType) parser.ReadByte();
            DiscoveryStatus = (DiscoveryStatusType) parser.ReadByte();
        }
Example #2
0
        public override void Parse()
        {
            FrameId = (byte)parser.ReadByte();
            Address = parser.ReadAddress16();

            TransmitRetryCount = parser.ReadByte();
            DeliveryStatus     = (DeliveryStatusType)parser.ReadByte();
            DiscoveryStatus    = (DiscoveryStatusType)parser.ReadByte();
        }
 /// <summary>Converts POC property to textual representation</summary>
 /// <param name="type">POC object property</param>
 /// <returns>Textual representation</returns>
 private static string ConvertDeliveryStatusToText(DeliveryStatusType? type)
 {
     if (type == null) return string.Empty;
     switch (type.Value)
     {
         case DeliveryStatusType.Received: return "Доставлено";
         case DeliveryStatusType.Sent: return "Отправлено";
         case DeliveryStatusType.Failure: return "Ошибка!";
         default: throw new Exception("Unknown Delivery Status Type option");
     }
 }