OEmbed Class

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

Represents an oEmbed object. See http://oembed.com for more details.

public class OEmbed
Inheritance:
System.Object → OEmbed

Constructors

OEmbed()

Properties

AuthorName Gets the author name.
AuthorUrl Gets the author url.
CacheAge Gets the cache age in seconds.
Height Gets the height in pixels of the embed (when EmbedType is "photo", "rich" or "video").
Html Gets the html required to display the resource (when EmbedType is "rich" or "video").
ProviderName Gets the provider name.
ProviderUrl Gets the provider url.
ThumbnailHeight Gets the height of the thumbnail.
ThumbnailUrl Gets the thumbnail url.
ThumbnailWidth Gets the width of the thumbnail.
Title Gets the title.
Type Gets the type of embed.
Url Gets the source url of the image (when EmbedType is "photo"). Consumers should be able to insert this URL into an <img> element.
Version Gets the oembed version.
Width Gets the width in pixels of the embed (when EmbedType is "photo", "rich" or "video").

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, 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.