public GraphAdapter (GeofenceDatabase db) { this.db = db; entries = new List<EcoPublicApi.CounterEntry> (); api = new EcoPublicApi (); HasStableIds = true; }
public EcoPublicAdapter (GeofenceDatabase db) { this.db = db; HasStableIds = true; counters = new List<EcoPublicApi.CounterEntry?> (); api = new EcoPublicApi (); weatherApi = new WeatherApi () { UseDebugMode = true }; }
async void AddOccurence (GeofenceDatabase db) { try { await db.AddOccurence (DateTime.UtcNow); } catch (Exception e) { Android.Util.Log.Error ("CytotemGeofence", e.ToString ()); } }