This service is available via Telligent.Evolution.Extensibility.Apis.Get<Telligent.Evolution.Extensibility.Api.Version2.IFeatures>()
and is defined in Telligent.Evolution.Platform.dll
Events
Events.AfterCreate
Handler
void FeaturedContentAfterFeatureCreateEventHandler(FeaturedContentAfterFeatureCreateEventArgs e);
Events.AfterDelete
Handler
void FeaturedContentAfterFeatureDeleteEventHandler(FeaturedContentAfterFeatureDeleteEventArgs e);
Events.AfterUpdate
Handler
void FeaturedContentAfterFeatureUpdateEventHandler(FeaturedContentAfterFeatureUpdateEventArgs e);
Events.BeforeCreate
Handler
void FeaturedContentBeforeFeatureCreateEventHandler(FeaturedContentBeforeFeatureCreateEventArgs e);
Events.BeforeDelete
Handler
void FeaturedContentBeforeFeatureDeleteEventHandler(FeaturedContentBeforeFeatureDeleteEventArgs e);
Events.BeforeUpdate
Handler
void FeaturedContentBeforeFeatureUpdateEventHandler(FeaturedContentBeforeFeatureUpdateEventArgs e);
Methods
bool CanFeature(Guid contentId, Guid contentTypeId);
Identifies if the accessing user can feature the specified content
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
contentId | Guid | Content Id | Required | ||
contentTypeId | Guid | Content Type Id | Required |
Return Type
bool
bool CanFeature(string contentUrl, Guid oauthClientId);
Identifies if the accessing user can feature the specified external content
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
contentUrl | string | Content Url | Required | ||
oauthClientId | Guid | Oauth Client Id | Required |
Return Type
bool
Feature Create(Guid contentId, Guid contentTypeId, FeaturesCreateOptions options);
Features an item
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
contentId | Guid | Content Id | Required | ||
contentTypeId | Guid | Content Type Id | Required | ||
options | FeaturesCreateOptions | Options | Required |
Return Type
Feature Create(string contentUrl, Guid oauthClientId, FeaturesCreateOptions options);
Features an external item
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
contentUrl | string | Content Url | Required | ||
oauthClientId | Guid | Oauth Client Id | Required | ||
options | FeaturesCreateOptions | Options | Required |
Return Type
AdditionalInfo Delete(Guid contentId, Guid contentTypeId, FeaturesDeleteOptions options);
Removes a featured item
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
contentId | Guid | Content Id | Required | ||
contentTypeId | Guid | Content Type Id | Required | ||
options | FeaturesDeleteOptions | Options | Required |
Return Type
AdditionalInfo Delete(string contentUrl, Guid oauthClientId, FeaturesDeleteOptions options);
Removes an external featured item
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
contentUrl | string | Content Url | Required | ||
oauthClientId | Guid | Oauth Client Id | Required | ||
options | FeaturesDeleteOptions | Options | Required |
Return Type
Feature Get(Guid contentId, Guid contentTypeId, FeaturesGetOptions options);
Get a featured item
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
contentId | Guid | Content Id | Required | ||
contentTypeId | Guid | Content Type Id | Required | ||
options | FeaturesGetOptions | Options | Required |
Return Type
Feature Get(string contentUrl, Guid oauthClientId, FeaturesGetOptions options);
Get an external featured item
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
contentUrl | string | Content Url | Required | ||
oauthClientId | Guid | Oauth Client Id | Required | ||
options | FeaturesGetOptions | Options | Required |
Return Type
PagedList<Feature> List(FeaturesListOptions options = null);
Lists featured items
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
options | FeaturesListOptions | Optional parameter names are: UserId, GroupId, ApplicationId, Count | Optional |
Return Type
bool SupportsFeatures(Guid contentTypeId);
Determines if the supplied content type supports features
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
contentTypeId | Guid | Content Type Id | Required |
Return Type
bool
Feature Update(Guid contentId, Guid contentTypeId, FeaturesUpdateOptions options);
Updates a featured item
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
contentId | Guid | Content Id | Required | ||
contentTypeId | Guid | Content Type Id | Required | ||
options | FeaturesUpdateOptions | Options | Required |
Return Type
Feature Update(string contentUrl, Guid oauthClientId, FeaturesUpdateOptions options);
Updates an external featured item
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
contentUrl | string | Content Url | Required | ||
oauthClientId | Guid | Oauth Client Id | Required | ||
options | FeaturesUpdateOptions | Options | Required |