Exemplo n.º 1
0
 public async override Task OnPropertyInspectorMessageReceived(PropertyInspectorEventPayload args)
 {
     if (args.PayloadHasProperty("starting_number"))
     {
         _Counter = args.GetPayloadValue <int>("starting_number");
         await Manager.SetTitleAsync(args.context, _Counter.ToString());
     }
 }
Exemplo n.º 2
0
        //public override async Task OnWillDisappear(StreamDeckEventPayload args)
        //{

        //	var settings = new { counter = _Counter };

        //	await Manager.SetSettingsAsync(args.context, settings);
        //}

        //public override Task OnPropertyInspectorConnected(PropertyInspectorEventPayload args)
        //{
        //      _IsPropertyInspectorConnected = true;
        //      return Task.CompletedTask;
        //}

        //public override Task OnPropertyInspectorDisconnected(PropertyInspectorEventPayload args)
        //{
        //  _IsPropertyInspectorConnected = false;
        //  return Task.CompletedTask;
        //}

        public async override Task OnPropertyInspectorMessageReceived(PropertyInspectorEventPayload args)
        {
            if (args.PayloadHasProperty("github_repository"))
            {
                _Project = args.GetPayloadValue <string>("github_repository");
                await SetGitHubTitles(args.context);
            }
        }