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()); } }
//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); } }
public override Task OnPropertyInspectorMessageReceived(PropertyInspectorEventPayload args) { // Cheer 100 pharewings 22/2/19 // Cheer 200 cpayette 22/2/19 // Cheer 900 cpayette 24/2/19 // Cheer 100 gep13 24/2/19 // Cheer 100 phrakberg 24/2/19 // Cheer 100 lannonbr 24/2/19 _ProjectFileName = args.GetSettingsPayloadValue <string>("test_project_file"); return(Task.CompletedTask); }
public virtual Task OnPropertyInspectorDisconnected(PropertyInspectorEventPayload args) => Task.CompletedTask;
public virtual Task OnPropertyInspectorMessageReceived(PropertyInspectorEventPayload args) => Task.CompletedTask;
public override Task OnPropertyInspectorDisconnected(PropertyInspectorEventPayload args) { _IsPropertyInspectorConnected = false; return(Task.CompletedTask); }
public override Task OnPropertyInspectorConnected(PropertyInspectorEventPayload args) { Manager.SendToPropertyInspectorAsync(args.context, new { ProjectName = _ProjectFileName }); return(base.OnPropertyInspectorConnected(args)); }