Content created on the site must implement this interface for the social services to support it.
Properties
Name | Type | Description | Default | Options |
---|---|---|---|---|
Application | Application | |||
Author | User | |||
AvatarUrl | string | Url to an image particular to the content or content type. If none, return null. | ||
CommentCount | int? | |||
ContentId | Guid | A Guid uniquely identifying the content. | ||
Date | DateTime? | |||
Downloads | int? | |||
EmbedCode | string | |||
Errors | IList<Error> | |||
ExtendedAttributes | ApiList<ExtendedAttribute> | |||
FeaturedImage | string | |||
File | MediaFile | |||
GroupId | int? | |||
Id | int? | |||
IsApproved | bool? | |||
IsFeatured | bool? | |||
MediaGalleryId | int? | |||
MetaDescription | string | |||
MetaKeywords | string | |||
MetaTitle | string | |||
OpenGraphDescription | string | |||
OpenGraphImage | MediaFile | |||
OpenGraphTitle | string | |||
RatingCount | int? | |||
RatingSum | int? | |||
SearchUniqueId | string | |||
Tags | IList<string> | |||
Title | string | |||
Url | string | A Url to the content on the site. | ||
Views | int? | |||
Warnings | IList<Warning> |
Methods
Body
Usage
#set($stringResponse = $media.Body())
Return Type
string
Body
Usage
#set($stringResponse = $media.Body($postTarget))
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
postTarget | string | Post Target | Required |
Return Type
string
HasErrors
Usage
#set($booleanResponse = $media.HasErrors())
Return Type
bool
HasWarnings
Usage
#set($booleanResponse = $media.HasWarnings())
Return Type
bool
HasWarningsOrErrors
Usage
#set($booleanResponse = $media.HasWarningsOrErrors())
Return Type
bool
ThrowErrors
Usage
$media.ThrowErrors()