Table of Contents

Interface IThemeService

Namespace
Oqtane.Services
Assembly
Oqtane.Client.dll

Service to manage Theme entries

public interface IThemeService

Methods

CreateThemeAsync(Theme)

Creates a new theme

Task<Theme> CreateThemeAsync(Theme theme)

Parameters

theme Theme

Returns

Task<Theme>

DeleteThemeAsync(string)

Deletes a theme

Task DeleteThemeAsync(string themeName)

Parameters

themeName string

Returns

Task

GetContainerControls(List<Theme>, string)

Returns a list of containers (ThemeControl) for a theme containing a specific theme control type

List<ThemeControl> GetContainerControls(List<Theme> themes, string themeControlType)

Parameters

themes List<Theme>
themeControlType string

Returns

List<ThemeControl>

GetLayoutControls(List<Theme>, string)

Returns a list of layouts (ThemeControl) from the given themes with a matching theme name

List<ThemeControl> GetLayoutControls(List<Theme> themes, string themeName)

Parameters

themes List<Theme>
themeName string

Returns

List<ThemeControl>

GetTheme(List<Theme>, string)

Returns a theme ThemeControls containing a specific theme control type

Theme GetTheme(List<Theme> themes, string themeControlType)

Parameters

themes List<Theme>
themeControlType string

Returns

Theme

GetThemeAsync(int, int)

Returns a specific theme

Task<Theme> GetThemeAsync(int themeId, int siteId)

Parameters

themeId int
siteId int

Returns

Task<Theme>

GetThemeControls(List<Theme>)

Returns a list of ThemeControls from the given themes

List<ThemeControl> GetThemeControls(List<Theme> themes)

Parameters

themes List<Theme>

Returns

List<ThemeControl>

GetThemeControls(List<Theme>, string)

Returns a list of ThemeControls for a theme containing a specific theme control type

List<ThemeControl> GetThemeControls(List<Theme> themes, string themeControlType)

Parameters

themes List<Theme>
themeControlType string

Returns

List<ThemeControl>

GetThemeTemplatesAsync()

Returns a list of theme templates (Template)

Task<List<Template>> GetThemeTemplatesAsync()

Returns

Task<List<Template>>

GetThemesAsync()

Returns a list of available themes

Task<List<Theme>> GetThemesAsync()

Returns

Task<List<Theme>>

UpdateThemeAsync(Theme)

Updates a existing theme

Task UpdateThemeAsync(Theme theme)

Parameters

theme Theme

Returns

Task