IActivityStoryEmbeddableContentFragmentType
is defined in the Telligent.Evolution.Extensibility.EmbeddableContent.Version2
namespace of Telligent.Evolution.Platform.dll
Definition
interface IActivityStoryEmbeddableContentFragmentType : IEmbeddableContentFragmentType, IPlugin { string ContentFragmentDescription { get; } string ContentFragmentName { get; } Guid EmbeddedContentFragmentTypeId { get; } bool IsCacheable { get; } string PreviewImageUrl { get; } bool VaryCacheByUser { get; } bool CanEmbed(Guid contentTypeId, int userId); bool CanPreview(IActivityStory story, IEmbeddableContentFragment embeddedFragment); bool CanView(IActivityStory story, IEmbeddableContentFragment embeddedFragment); string GetPreviewHtml(IActivityStory story, IEmbeddableContentFragment embeddedFragment, Target target); string GetViewHtml(IActivityStory story, IEmbeddableContentFragment embeddedFragment, Target target); }
Properties
Name | Type | Description | Default | Options |
---|---|---|---|---|
ContentFragmentDescription | string | |||
ContentFragmentName | string | |||
EmbeddedContentFragmentTypeId | Guid | |||
IsCacheable | bool | |||
PreviewImageUrl | string | |||
VaryCacheByUser | bool |
Methods
bool CanEmbed(Guid contentTypeId, int userId);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
contentTypeId | Guid | Content Type Id | Required | ||
userId | int | User Id | Required |
Return Type
bool
bool CanPreview(IActivityStory story, IEmbeddableContentFragment embeddedFragment);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
story | IActivityStory | Story | Required | ||
embeddedFragment | IEmbeddableContentFragment | Embedded Fragment | Required |
Return Type
bool
bool CanView(IActivityStory story, IEmbeddableContentFragment embeddedFragment);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
story | IActivityStory | Story | Required | ||
embeddedFragment | IEmbeddableContentFragment | Embedded Fragment | Required |
Return Type
bool
string GetPreviewHtml(IActivityStory story, IEmbeddableContentFragment embeddedFragment, Target target);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
story | IActivityStory | Story | Required | ||
embeddedFragment | IEmbeddableContentFragment | Embedded Fragment | Required | ||
target | Target | Target | Required |
Return Type
string
string GetViewHtml(IActivityStory story, IEmbeddableContentFragment embeddedFragment, Target target);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
story | IActivityStory | Story | Required | ||
embeddedFragment | IEmbeddableContentFragment | Embedded Fragment | Required | ||
target | Target | Target | Required |
Return Type
string