示例#1
0
 internal virtual void OnCommandComplete(CommandCompleteEvent e)
 {
     if (CommandCompleteCallback != null)
     {
         CommandCompleteCallback(this, e);
     }
 }
示例#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));
            }
        }
示例#3
0
 internal override ushort ParseCommandResult(CommandCompleteEvent e)
 {
     return(0x4687);
 }