ExternalLink Class

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

public class ExternalLink : ICloneable
Inheritance:
System.Object → ExternalLink

Constructors

ExternalLink()
ExternalLink(IEntity)

Properties

CreatedAt Gets or sets the time (UTC) the link was created.
CreatedBy Gets the User that created the link.
CreatedById Gets the id of the user that created the link.
Entity Gets a reference to the entity the link references, i.e. File, Item etc.
ExpiresAt Gets or sets the time (UTC) the link expires.
Id Gets the id of the link.
IsExpired Gets or sets a value indicating whether this link has expired.
IsPasswordProtected Gets or sets a value indicating whether this link is password protected.
Password Gets or sets the password that protects this link.
Views Gets the number of times this link has been used.

Methods

Clone() Create a deep copy of the current object.

Extension Methods

IsNullOrDefault(T) Gets a value indicating if the specified value has the default value of the generic type.
Serialize(Object) Serializes an object, or graph of connected objects, to a byte array.
SerializeToJson(Object, Nullable, JsonSerializerSettings) Serializes an object, or graph of connected objects, to a json string.
ContentUrl(ExternalLink, Boolean, Boolean, Boolean) Returns a content url for the external link (only for links that reference files).
Url(ExternalLink, Boolean, Boolean, Boolean) Returns an url for the external link.
IsValid(Object) Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.