Note Class

Namespace:
Weavy.Core.Models
Assembly:
Weavy.Core.dll

A simple note for general purpose documentation.

[Guid("1F987836-1515-4393-BC64-F4ABD84E9D90")]
[Content(Icon = "file-document-box", Color = "theme-500", Name = "Note", Description = "A simple note for general purpose documentation with an easy to use WYSIWYG editor.", SingularName = "a note", PluralName = "notes", CreateVerb = "Save", ModifyVerb = "Save", Parents = new Type[]{typeof(FilesApp), typeof(Folder)}, CreateMode = UpsertMode.Page, ModifyMode = UpsertMode.Page)]
public class Note : Content, IExpando, IDynamicMetaObjectProvider, IEnumerable<KeyValuePair<string, object>>, IEnumerable, IValidatableObject, ICommentable, IHtmlDocument, IDraftable, IFollowable, IHasAttachments, ILockable, IStarrable, ITaggable, IVersionable, IContent, IExtension, IAppEntity, ISpaceEntity, ITrashable, IEntity, ICloneable
Inheritance:
System.Object → ExpandoContentNote
Attributes:
System.Runtime.InteropServices.GuidAttribute, ContentAttribute
Implements:
IExpando, ICommentable, IHtmlDocument, IDraftable, IFollowable, IHasAttachments, ILockable, IStarrable, ITaggable, IVersionable, IContent, IExtension, IAppEntity, ISpaceEntity, ITrashable, IEntity

Constructors

Note() Initializes a new instance of the Note class.

Properties

AttachmentIds Gets the ids of all files attached to the item.
Body Gets or sets the body text of the note.
CommentIds Gets the ids of all comments.
FollowedByIds Gets the ids of the Users that follow the item.
IsDraft Gets or sets a value indicating whether this is a draft.
IsTransient Gets a value indicating whether this is a transient draft.
LockedAt Gets or sets the time (UTC) the item was locked.
LockedById Gets or sets the id of the User that locked the item or null if no lock exists.
StarredByIds Gets the ids of the users that have starred the item.
Tags Gets or sets the list of tags associated with the item.
Version Gets the timestamp of the revision.

Methods

CreateThumb(FileInfo) Creates a thumbnail image for this Note. Subclasses can override this method to supply their own implementation.
GetHtml() Gets the body text to export.

Extension Methods

IsNullOrDefault(T) Gets a value indicating if the specified value has the default value of the generic type.
MetaData(Content) Gets meta data for the specified content item.
Serialize(object) Serializes an object, or graph of connected objects, to a byte array.
SerializeToJson(object, Formatting?, JsonSerializerSettings) Serializes an object, or graph of connected objects, to a json string.
IsValid(object) Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.
FAB(Content) Returns a FAB with links for adding child content.