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

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

Méthodes publiques

Méthode 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 méthode

Clear notifications
public ClearNotifications ( int userInfoId ) : void
userInfoId int
Résultat void

CreateNotification() public méthode

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

GetNotifications() public méthode

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
Résultat IEnumerable

UpdateNotification() public méthode

public UpdateNotification ( Notification notification ) : void
notification Ru.GameSchool.DataLayer.Repository.Notification
Résultat void