Class OEmbedResponseBase<T>
Base class for OEmbed response.
Inheritance
Namespace: Umbraco.Cms.Core.Media.EmbedProviders
Assembly: Umbraco.Core.dll
Syntax
[DataContract]
public abstract class OEmbedResponseBase<T>
Type Parameters
| Name | Description |
|---|---|
| T |
Constructors
View SourceOEmbedResponseBase()
Declaration
protected OEmbedResponseBase()
Properties
View SourceAuthorName
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 |
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 |
Height
Gets or sets the height of the embedded resource.
Declaration
[DataMember(Name = "height")]
public T? Height { get; set; }
Property Value
| Type | Description |
|---|---|
| T |
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 |
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 |
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 |
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 |
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 |
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 |
Title
Gets or sets the title of the resource.
Declaration
[DataMember(Name = "title")]
public string? Title { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
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 |
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 |
Version
Gets or sets the OEmbed version number.
Declaration
[DataMember(Name = "version")]
public string? Version { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
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 SourceGetHtml()
Gets the HTML.
Declaration
public string GetHtml()
Returns
| Type | Description |
|---|---|
| string | The response HTML |