C# Class HA4IoT.Notifications.NotificationService

Inheritance: HA4IoT.Contracts.Services.ServiceBase, INotificationService
Show file Open project: chkr1011/CK.HomeAutomation Class Usage Examples

Public Methods

Method Description
Create ( NotificationType type, string message, System.TimeSpan timeToLive ) : void
CreateError ( string text ) : void
CreateInformation ( Enum resourceId ) : void
CreateInformation ( string text ) : void
CreateWarning ( string text ) : void
Initialize ( ) : void
NotificationService ( IDateTimeService dateTimeService, IApiService apiService, ISchedulerService schedulerService, ISettingsService settingsService, IStorageService storageService, IResourceService resourceService ) : System

Private Methods

Method Description
Cleanup ( ) : void
Delete ( IApiContext apiContext ) : void
HandleApiStatusRequest ( object sender, ApiRequestReceivedEventArgs e ) : void
SaveNotifications ( ) : void
TryLoadNotifications ( ) : void

Method Details

Create() public method

public Create ( NotificationType type, string message, System.TimeSpan timeToLive ) : void
type NotificationType
message string
timeToLive System.TimeSpan
return void

CreateError() public method

public CreateError ( string text ) : void
text string
return void

CreateInformation() public method

public CreateInformation ( Enum resourceId ) : void
resourceId System.Enum
return void

CreateInformation() public method

public CreateInformation ( string text ) : void
text string
return void

CreateWarning() public method

public CreateWarning ( string text ) : void
text string
return void

Initialize() public method

public Initialize ( ) : void
return void

NotificationService() public method

public NotificationService ( IDateTimeService dateTimeService, IApiService apiService, ISchedulerService schedulerService, ISettingsService settingsService, IStorageService storageService, IResourceService resourceService ) : System
dateTimeService IDateTimeService
apiService IApiService
schedulerService ISchedulerService
settingsService ISettingsService
storageService IStorageService
resourceService IResourceService
return System