Пример #1
0
        private void HelenApiLocationListener_MsgReceived(object sender, MsgReceivedEventArgs e)
        {
            var result = HelenApi.GetApiLocationFromMessage(e.Message);

            if (result.HasValue && result.Value.apiId == Settings.ApiId)
            {
                Settings.Room = result.Value.deviceLocation;
                UpdateFromSettings(Settings);
            }
        }
Пример #2
0
 private void ConfigListener_MsgReceived(object sender, MsgReceivedEventArgs e)
 {
     Settings.Json = e.Message;
     UpdateFromSettings(Settings);
 }