Exemplo n.º 1
0
 public async Task DeleteBackgroundEventAsync(string pidIn)
 {
     DBBackgroundEventsHistory backgroundEvent = new DBBackgroundEventsHistory() { BeaconPid = pidIn };
     await _db.DeleteAsync(backgroundEvent);
 }
Exemplo n.º 2
0
 public async Task UpdateBackgroundEventAsync(string pidIn,BeaconEventType eventType)
 {
     int type = (int)eventType;
     DateTimeOffset eventTime = DateTimeOffset.Now;
     DBBackgroundEventsHistory backgroundEvent = new DBBackgroundEventsHistory() { BeaconPid = pidIn, EventTime = eventTime, EventType= type };
     await _db.UpdateAsync(backgroundEvent);
 }
Exemplo n.º 3
0
 public async Task SaveBeaconBackgroundEvent(string pidIn,BeaconEventType triggerIn )
 {
     int eventType = (int)triggerIn;
     DateTimeOffset eventTime = DateTimeOffset.Now;
     DBBackgroundEventsHistory actions = new DBBackgroundEventsHistory() { BeaconPid = pidIn, EventType = eventType, EventTime = eventTime };
     await _db.InsertAsync(actions);
 }