public NotificationsViewModel(BandDeviceInfo info, BandClient bandClient, BandTile tile)
            : base(info, bandClient)
        {
            notifiactionManager = bandClient.NotificationManager;
            this.tile           = tile;

            SendMessageCommand = new Command(async() =>
            {
                await notifiactionManager.SendMessageAsync(tile.Id, Title, Body, DateTime.Now);
            });
            SendMessageWithDialogCommand = new Command(async() =>
            {
                await notifiactionManager.SendMessageAsync(tile.Id, Title, Body, DateTime.Now, true);
            });
            ShowDialogCommand = new Command(async() =>
            {
                await notifiactionManager.ShowDialogAsync(tile.Id, Title, Body);
            });
        }
Ejemplo n.º 2
0
 private async Task ShowDialogCommandExecute()
 {
     await _notifiactionManager.ShowDialogAsync(_tile.Id, Title, Body);
 }