Пример #1
0
            private void Stream_GroupReceived(string json)
            {
                var obj = Json.Convert.FromJson <List <Data.Alarm> >(json);

                if (obj != null)
                {
                    foreach (var alarm in obj)
                    {
                        AlarmReceived?.Invoke(alarm);
                    }
                }
            }
Пример #2
0
 protected virtual void OnAlarmReceived(string data)
 {
     AlarmReceived?.Invoke(this, data);
 }