C# Class HA4IoT.Services.Resources.ResourceService

Inheritance: HA4IoT.Contracts.Services.ServiceBase, IResourceService
显示文件 Open project: chkr1011/CK.HomeAutomation Class Usage Examples

Public Methods

Method Description
GetText ( Enum id ) : string
GetText ( Enum id, object>.IDictionary formatParameters ) : string
Initialize ( ) : void
RegisterText ( Enum id, string value ) : void
ResourceService ( IBackupService backupService, IStorageService storageService, ISettingsService settingsService ) : System

Private Methods

Method Description
CreateBackup ( BackupEventArgs backupEventArgs ) : void
GenerateUri ( Enum id ) : string
GetTexts ( IApiContext apiContext ) : void
ReplaceFormatParameter ( string text, string name, object value ) : string
RestoreBackup ( BackupEventArgs backupEventArgs ) : void
SaveResources ( ) : void
SetTexts ( IApiContext apiContext ) : void
TryLoadResources ( ) : void

Method Details

GetText() public method

public GetText ( Enum id ) : string
id System.Enum
return string

GetText() public method

public GetText ( Enum id, object>.IDictionary formatParameters ) : string
id System.Enum
formatParameters object>.IDictionary
return string

Initialize() public method

public Initialize ( ) : void
return void

RegisterText() public method

public RegisterText ( Enum id, string value ) : void
id System.Enum
value string
return void

ResourceService() public method

public ResourceService ( IBackupService backupService, IStorageService storageService, ISettingsService settingsService ) : System
backupService IBackupService
storageService IStorageService
settingsService ISettingsService
return System