C# 클래스 Ru.GameSchool.BusinessLayer.Services.NotificationService

Service class that abstracts the interraction around the notifications entity with the data layer.
상속: BaseService, IExternalNotificationContainer
파일 보기 프로젝트 열기: davidein/Ru.GameSchool 1 사용 예제들

공개 메소드들

메소드 설명
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