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