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.
Definition
class Media : LazyPostApiEntityWithExtendedAttributes<MediaGalleryPost>, IApiEntity, IExtendedAuditable, IFileReviewableContent, ITextReviewableContent
{
Media();
Media(AdditionalInfo additionalInfo);
Media(Error error);
Media(Warning warning);
Media(Func<MediaGalleryPost> corePostLoader, MediaGalleryPost originalPost);
Media(ICommentService commentService, IRatingService ratingService, IFeaturedContentApiService featureService, Func<MediaGalleryPost> corePostLoader, MediaGalleryPost originalPost);
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; }
IList<Error> Errors { get; }
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; }
IList<Warning> Warnings { get; }
string Body();
string Body(string postTarget);
bool HasErrors();
bool HasWarnings();
bool HasWarningsOrErrors();
void ThrowErrors();
}
Constructors
Media();
Media(AdditionalInfo additionalInfo);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| additionalInfo | AdditionalInfo | Additional Info | Required |
Media(Error error);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| error | Error | Error | Required |
Media(Warning warning);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| warning | Warning | Warning | Required |
Media(Func<MediaGalleryPost> corePostLoader, MediaGalleryPost originalPost);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| corePostLoader | Func<MediaGalleryPost> | Core Post Loader | Required | ||
| originalPost | MediaGalleryPost | Original Post | Required |
Media(ICommentService commentService, IRatingService ratingService, IFeaturedContentApiService featureService, Func<MediaGalleryPost> corePostLoader, MediaGalleryPost originalPost);
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| commentService | ICommentService | Comment Service | Required | ||
| ratingService | IRatingService | Rating Service | Required | ||
| featureService | IFeaturedContentApiService | Feature Service | Required | ||
| corePostLoader | Func<MediaGalleryPost> | Core Post Loader | Required | ||
| originalPost | MediaGalleryPost | Original Post | Required |
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 Obsolete | string | Obsolete in 14. | ||
| 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> |