C# Class Ru.GameSchool.BusinessLayer.Services.NotificationService

Service class that abstracts the interraction around the notifications entity with the data layer.
Inheritance: BaseService, IExternalNotificationContainer
Datei anzeigen Open project: davidein/Ru.GameSchool Class Usage Examples

Public Methods

Method Description
ClearNotifications ( int userInfoId ) : void

Clear notifications

CreateNotification ( string text, string url, int userInfoId ) : void

Create a new user notification.

GetNotifications ( int userInfoId ) : IEnumerable

Returns a collection of notification objects that are related to a given userinfo instance id, if the userinfoid is equal to or larger then 1.

UpdateNotification ( Notification notification ) : void

Method Details

ClearNotifications() public method

Clear notifications
public ClearNotifications ( int userInfoId ) : void
userInfoId int
return void

CreateNotification() public method

Create a new user notification.
public CreateNotification ( string text, string url, int userInfoId ) : void
text string
url string
userInfoId int
return void

GetNotifications() public method

Returns a collection of notification objects that are related to a given userinfo instance id, if the userinfoid is equal to or larger then 1.
public GetNotifications ( int userInfoId ) : IEnumerable
userInfoId int Integer value to get notifications
return IEnumerable

UpdateNotification() public method

public UpdateNotification ( Notification notification ) : void
notification Ru.GameSchool.DataLayer.Repository.Notification
return void