Exemple #1
0
        public static SlamStatusEventData Parse(byte[] data)
        {
            SlamStatusEventData obj = new SlamStatusEventData();

            obj.Status = (SlamOperationStatus)data[0];

            return(obj);
        }
Exemple #2
0
        private void _SlamStatusEventLabel_Fired(LinkUpEventLabel label, byte[] data)
        {
            List <Tuple <IProxyEventSubscriber, ProxyEventType> > subscriber = null;

            lock (_Subscriptions)
            {
                subscriber = _Subscriptions.Where(c => c.Item2 == ProxyEventType.SlamStatusEvent).ToList();
            }

            if (label == _SlamStatusEventLabel && subscriber != null && subscriber.Count() > 0)
            {
                SlamStatusEventData eventData = SlamStatusEventData.Parse(data);
                foreach (Tuple <IProxyEventSubscriber, ProxyEventType> t in subscriber)
                {
                    t.Item1.Fired(this, new List <AbstractProxyEventData>()
                    {
                        eventData
                    });
                }
            }
        }