C# Класс Ru.GameSchool.BusinessLayer.Services.NotificationService

Service class that abstracts the interraction around the notifications entity with the data layer.
Наследование: BaseService, IExternalNotificationContainer
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

ClearNotifications() публичный Метод

Clear notifications
public ClearNotifications ( int userInfoId ) : void
userInfoId int
Результат void

CreateNotification() публичный Метод

Create a new user notification.
public CreateNotification ( string text, string url, int userInfoId ) : void
text string
url string
userInfoId int
Результат void

GetNotifications() публичный Метод

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
Результат IEnumerable

UpdateNotification() публичный Метод

public UpdateNotification ( Notification notification ) : void
notification Ru.GameSchool.DataLayer.Repository.Notification
Результат void