C# Class FourRoads.Common.TelligentCommunity.Components.Logic.ContentLogic

Inheritance: IContentLogic
Show file Open project: 4-Roads/FourRoads.TelligentCommunity

Public Methods

Method Description
ContentLogic ( IContentService contentService, IAttachmentService attachmentService, ILegacyContentService legacyContentService, IFileViewerService fileViewerService ) : System
GetAllImageUrls ( System.Guid contentId ) : IEnumerable
GetAllVideoUrls ( System.Guid contentId ) : IEnumerable
GetBestImageUrl ( System.Guid contentId ) : string
GetFirstVideoUrl ( System.Guid contentId ) : string
ParseImagesFromContent ( string content ) : List
ParseVideosFromContent ( string content ) : List

Method Details

ContentLogic() public method

public ContentLogic ( IContentService contentService, IAttachmentService attachmentService, ILegacyContentService legacyContentService, IFileViewerService fileViewerService ) : System
contentService IContentService
attachmentService IAttachmentService
legacyContentService ILegacyContentService
fileViewerService IFileViewerService
return System

GetAllImageUrls() public method

public GetAllImageUrls ( System.Guid contentId ) : IEnumerable
contentId System.Guid
return IEnumerable

GetAllVideoUrls() public method

public GetAllVideoUrls ( System.Guid contentId ) : IEnumerable
contentId System.Guid
return IEnumerable

GetBestImageUrl() public method

public GetBestImageUrl ( System.Guid contentId ) : string
contentId System.Guid
return string

GetFirstVideoUrl() public method

public GetFirstVideoUrl ( System.Guid contentId ) : string
contentId System.Guid
return string

ParseImagesFromContent() public method

public ParseImagesFromContent ( string content ) : List
content string
return List

ParseVideosFromContent() public method

public ParseVideosFromContent ( string content ) : List
content string
return List