Content created on the site must implement this interface for the social services to support it.
Media is defined in the Telligent.Evolution.Extensibility.Api.Entities.Version1 namespace of Telligent.Evolution.MediaGalleries.dll
Definition
class Media
{
Application Application { get; }
User Author { get; set; }
string AvatarUrl { get; }
int? CommentCount { get; set; }
Guid ContentId { get; set; }
DateTime? Date { get; set; }
int? Downloads { get; set; }
string EmbedCode { get; set; }
ApiList<ExtendedAttribute> ExtendedAttributes { get; set; }
string FeaturedImage { get; set; }
MediaFile File { get; set; }
int? GroupId { get; set; }
int? Id { get; set; }
bool? IsApproved { get; set; }
bool? IsFeatured { get; set; }
int? MediaGalleryId { get; set; }
string MetaDescription { get; set; }
string MetaKeywords { get; set; }
string MetaTitle { get; set; }
string OpenGraphDescription { get; set; }
MediaFile OpenGraphImage { get; set; }
string OpenGraphTitle { get; set; }
int? RatingCount { get; set; }
int? RatingSum { get; set; }
string SearchUniqueId { get; }
IList<string> Tags { get; set; }
string Title { get; set; }
string Url { get; set; }
int? Views { get; set; }
string Body();
string Body(string postTarget);
}
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 | |||
| 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? |
Methods
string Body();
Return Type
string
string Body(string postTarget);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| postTarget | string | Post Target | Required |
Return Type
string