Beispiel #1
0
 internal virtual void OnCommandComplete(CommandCompleteEvent e)
 {
     if (CommandCompleteCallback != null)
     {
         CommandCompleteCallback(this, e);
     }
 }
Beispiel #2
0
        internal static Event Parse(Queue <byte> data)
        {
            if (data.Count < 2)
            {
                return(null);
            }
            EventCode code        = (EventCode)data.Dequeue();
            int       payloadSize = data.Dequeue();

            switch (code)
            {
            case EventCode.CommandComplete:
                return(CommandCompleteEvent.Parse(code, data));

            case EventCode.LeMeta:
                return(LeMetaEvent.Parse(code, data));

            default:
                return(new Event(code));
            }
        }
Beispiel #3
0
 internal override ushort ParseCommandResult(CommandCompleteEvent e)
 {
     return(0x4687);
 }