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