Example #1
0
        static async Task DeleteApp(Pebble pebble)
        {
            var applist = (await pebble.GetAppbankContentsAsync()).AppBank.Apps;

            Console.WriteLine("Choose an app to remove");
            AppBank.App result = SharpMenu <AppBank.App> .WriteAndPrompt(applist);

            AppbankInstallResponse ev = await pebble.RemoveAppAsync(result);

            Console.WriteLine(ev.MsgType);
        }
Example #2
0
        private async void OnUninstallApp(PebbleApp?app)
        {
            if (app == null)
            {
                return;
            }

            var response = await Pebble.RemoveAppAsync(app.Value);

            if (response.Success)
            {
                await LoadAppsAsync();
            }
        }