Search Results for

    Show / Hide Table of Contents
    View Source

    Class OEmbedResponseBase<T>

    Base class for OEmbed response.

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.Media.EmbedProviders
    Assembly: Umbraco.Core.dll
    Syntax
    [DataContract]
    public abstract class OEmbedResponseBase<T>
    Type Parameters
    Name Description
    T

    Constructors

    View Source

    OEmbedResponseBase()

    Declaration
    protected OEmbedResponseBase()

    Properties

    View Source

    AuthorName

    Gets or sets the name of the author/owner of the resource.

    Declaration
    [DataMember(Name = "author_name")]
    public string? AuthorName { get; set; }
    Property Value
    Type Description
    string
    View Source

    AuthorUrl

    Gets or sets the URL of the author/owner of the resource.

    Declaration
    [DataMember(Name = "author_url")]
    public string? AuthorUrl { get; set; }
    Property Value
    Type Description
    string
    View Source

    Height

    Gets or sets the height of the embedded resource.

    Declaration
    [DataMember(Name = "height")]
    public T? Height { get; set; }
    Property Value
    Type Description
    T
    View Source

    Html

    Gets or sets the HTML snippet for embedding the resource.

    Declaration
    [DataMember(Name = "html")]
    public string? Html { get; set; }
    Property Value
    Type Description
    string
    View Source

    ProviderName

    Gets or sets the name of the resource provider.

    Declaration
    [DataMember(Name = "provider_name")]
    public string? ProviderName { get; set; }
    Property Value
    Type Description
    string
    View Source

    ProviderUrl

    Gets or sets the URL of the resource provider.

    Declaration
    [DataMember(Name = "provider_url")]
    public string? ProviderUrl { get; set; }
    Property Value
    Type Description
    string
    View Source

    ThumbnailHeight

    Gets or sets the height of the thumbnail image.

    Declaration
    [DataMember(Name = "thumbnail_height")]
    public virtual T? ThumbnailHeight { get; set; }
    Property Value
    Type Description
    T
    View Source

    ThumbnailUrl

    Gets or sets the URL to a thumbnail image representing the resource.

    Declaration
    [DataMember(Name = "thumbnail_url")]
    public string? ThumbnailUrl { get; set; }
    Property Value
    Type Description
    string
    View Source

    ThumbnailWidth

    Gets or sets the width of the thumbnail image.

    Declaration
    [DataMember(Name = "thumbnail_width")]
    public T? ThumbnailWidth { get; set; }
    Property Value
    Type Description
    T
    View Source

    Title

    Gets or sets the title of the resource.

    Declaration
    [DataMember(Name = "title")]
    public string? Title { get; set; }
    Property Value
    Type Description
    string
    View Source

    Type

    Gets or sets the resource type (e.g., "photo", "video", "link", "rich").

    Declaration
    [DataMember(Name = "type")]
    public string? Type { get; set; }
    Property Value
    Type Description
    string
    View Source

    Url

    Gets or sets the source URL of the resource (used for photo type).

    Declaration
    [DataMember(Name = "url")]
    public string? Url { get; set; }
    Property Value
    Type Description
    string
    View Source

    Version

    Gets or sets the OEmbed version number.

    Declaration
    [DataMember(Name = "version")]
    public string? Version { get; set; }
    Property Value
    Type Description
    string
    View Source

    Width

    Gets or sets the width of the embedded resource.

    Declaration
    [DataMember(Name = "width")]
    public T? Width { get; set; }
    Property Value
    Type Description
    T

    Methods

    View Source

    GetHtml()

    Gets the HTML.

    Declaration
    public string GetHtml()
    Returns
    Type Description
    string

    The response HTML

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX