1. ISettingsClient

Interface ISettingsClient

Version:
日本語翻訳に関する免責事項

このページの翻訳はAIによって自動的に行われました。可能な限り正確な翻訳を心掛けていますが、原文と異なる表現や解釈が含まれる場合があります。正確で公式な情報については、必ず英語の原文をご参照ください。

Client for fetching setting and category entities.

Namespace: Stylelabs.M.Sdk.Clients
Assembly: Stylelabs.M.Sdk.dll
Syntax
public interface ISettingsClient

Methods

GetCategoryIdAsync(String)

Gets the id of a category by name.

Declaration
Task<long?> GetCategoryIdAsync(string name)
Parameters
TypeNameDescription
System.Stringname
Returns
TypeDescription
Task<System.Nullable<System.Int64>>

Id of the category entity.

GetSettingAsync(String, String, IEntityLoadConfiguration)

Gets the setting with the specified name from the specified category. If the category or setting could not be found, null is returned.

Declaration
Task<IEntity> GetSettingAsync(string category, string name, IEntityLoadConfiguration loadConfiguration = null)
Parameters
TypeNameDescription
System.Stringcategory

The category to get the setting from.

System.Stringname

The name of the setting to get.

IEntityLoadConfigurationloadConfiguration

Load configuration.

Returns
TypeDescription
Task<IEntity>

The setting with the specified name from the specified category or null if that setting doesn't exist.

GetSettingsForCategoryAsync(String, IEntityLoadConfiguration)

Gets the settings for the specified category.

Declaration
Task<IList<IEntity>> GetSettingsForCategoryAsync(string category, IEntityLoadConfiguration loadConfiguration = null)
Parameters
TypeNameDescription
System.Stringcategory

The category to get the setting for.

IEntityLoadConfigurationloadConfiguration

Load configuration.

Returns
TypeDescription
Task<IList<IEntity>>

A list of all setting entities for the specified category.

Exceptions
TypeCondition
NotFoundException

Unable to find the category with the specified name.

この記事を改善するための提案がある場合は、 お知らせください!