public Marker(string markerId, string markerDescriptor, string customData, DateTime updateDate, DateTime downloadDate, DateTime lastAccessDate, DateTime?publishedFrom, DateTime?publishedTo, bool cacheEnabled, MarkerDatabase markerDatabase, bool arLogoEnabled) { this.markerId = markerId; this.markerDescriptor = markerDescriptor; this.customData = customData; this.updateDate = updateDate; this.downloadDate = downloadDate; this.lastAccessDate = lastAccessDate; this.publishedFrom = publishedFrom; this.publishedTo = publishedTo; this.cacheEnabled = cacheEnabled; this.databaseId = markerDatabase.id; this.markerDatabase = markerDatabase; this.arLogoEnabled = arLogoEnabled; }
public void SaveMarkerDatabase(MarkerDatabase markerDatabase, bool replace) { if (markerDatabase == null) { return; } //Debug.Log("SaveMarkerDatabase: " + markerDatabase.ToString()); if (replace) { dbu.InsertOrReplace <MarkerDatabase>(markerDatabase); } else { dbu.Insert <MarkerDatabase>(markerDatabase); } dbu.UpdateLastAccessDate(markerDatabase); }
/// <summary> /// Updates the last access date of a MarkerDatabase. /// </summary> /// <param name="obj">MarkerDatabase to update.</param> public void UpdateLastAccessDate(MarkerDatabase obj) { obj.lastAccessDate = DateTime.Now.ToUniversalTime(); _connection.Update(obj); }