public IEnumerable <Annotation> ReadAnnotations(DateTime @from, DateTime until) { var annotationDatabase = AnnotationDatabase.OpenOrCreate(Path.Combine(rootDirectory, "annotations.db")); return(annotationDatabase.ReadAnnotations(from, until)); }
public void AddAnnotation(string title, string message) { var annotationDatabase = AnnotationDatabase.OpenOrCreate(path); annotationDatabase.WriteAnnotation(DateTime.UtcNow, title, message); }
public void WriteAnnotation(Annotation annotation) { var annotationDatabase = AnnotationDatabase.OpenOrCreate(Path.Combine(rootDirectory, "annotations.db")); annotationDatabase.WriteAnnotation(annotation.Timestamp, annotation.Title, annotation.Message, annotation.Tags.ToArray()); }
public IEnumerable <Annotation> List(DateTime @from, DateTime until) { var annotationDatabase = AnnotationDatabase.OpenOrCreate(path); return(annotationDatabase.ReadAnnotations(from, until)); }