Class FluentSettings
Version: 3.4
Provides access to settings in a fluent way.
Inheritance
object
FluentSettings
Namespace: StylelabsStylelabs.MSdkFluentWrappers
Assembly: Stylelabs.M.Sdk.Fluent.dll
Syntax
RequestResponse
public class FluentSettings
Constructors
FluentSettings(ISettingsClient, IEntitiesClient, IEntityLoadConfiguration)
Initializes a new instance of the FluentSettings class.
Declaration
RequestResponse
public FluentSettings(ISettingsClient settingsClient, IEntitiesClient entitiesClient, IEntityLoadConfiguration entityLoadConfiguration)
Parameters
Type | Name | Description |
---|---|---|
ISettingsClient | settingsClient |
The ISettingsClient instance. |
IEntitiesClient | entitiesClient |
The IEntitiesClient instance. |
IEntityLoadConfiguration | entityLoadConfiguration |
The IEntityLoadConfiguration instance. |
Methods
GetSetting(string, string)
Gets the setting with the specified name
from the specified category
.
If the category or setting could not be found, null is returned.
Declaration
RequestResponse
public FluentEntity GetSetting(string category, string name)
Parameters
Type | Name | Description |
---|---|---|
string | category |
The category to get the setting from. |
string | name |
The name of the setting to get. |
Returns
Type | Description |
---|---|
FluentEntity |
A FluentEntity. |
GetSettingsForCategory(string)
Gets the settings for the specified category
.
Declaration
RequestResponse
public IList<FluentEntity> GetSettingsForCategory(string category)
Parameters
Type | Name | Description |
---|---|---|
string | category |
The category to get the setting for. |
Returns
Type | Description |
---|---|
IList<>FluentEntity |
A FluentEntity. |