Ejemplo n.º 1
0
        public LogsViewModel(IBeaconManager beaconManager,
                             IUserDialogs dialogs,
                             LogSqliteConnection conn)
        {
            this.beaconManager = beaconManager;
            this.conn          = conn;

            this.Purge = ReactiveCommand.CreateFromTask(async() =>
            {
                var result = await dialogs.ConfirmAsync("Are you sure you wish to purge all logs?");
                if (result)
                {
                    this.conn.DeleteAll <DbBeaconPing>();
                    this.LoadData();
                }
            });
        }
Ejemplo n.º 2
0
 public MonitoringTask(IBeaconManager beaconManager, LogSqliteConnection conn)
 {
     this.beaconManager = beaconManager;
     this.conn          = conn;
 }