C# Class DataAccess.Repositories.EventRepository

Inheritance: IEventRepository
ファイルを表示 Open project: LeagueOfDevelopers/LodCore Class Usage Examples

Public Methods

Method Description
DistrubuteEvent ( Event @event, DistributionPolicy distributionPolicy ) : void
EventRepository ( DatabaseSessionProvider sessionProvider ) : System.Linq
GetCountOfUnreadEvents ( int userId ) : int
GetEventsByUser ( int userId, bool newOnly ) : NotificationService.Event[]
GetSomeEvents ( int userId, int projectsToSkip, int takeCount ) : NotificationService.Event[]
MarkEventsAsRead ( int eventIds ) : void
WasThisEventRead ( int eventId, int userId ) : bool

Method Details

DistrubuteEvent() public method

public DistrubuteEvent ( Event @event, DistributionPolicy distributionPolicy ) : void
@event NotificationService.Event
distributionPolicy NotificationService.DistributionPolicy
return void

EventRepository() public method

public EventRepository ( DatabaseSessionProvider sessionProvider ) : System.Linq
sessionProvider DatabaseSessionProvider
return System.Linq

GetCountOfUnreadEvents() public method

public GetCountOfUnreadEvents ( int userId ) : int
userId int
return int

GetEventsByUser() public method

public GetEventsByUser ( int userId, bool newOnly ) : NotificationService.Event[]
userId int
newOnly bool
return NotificationService.Event[]

GetSomeEvents() public method

public GetSomeEvents ( int userId, int projectsToSkip, int takeCount ) : NotificationService.Event[]
userId int
projectsToSkip int
takeCount int
return NotificationService.Event[]

MarkEventsAsRead() public method

public MarkEventsAsRead ( int eventIds ) : void
eventIds int
return void

WasThisEventRead() public method

public WasThisEventRead ( int eventId, int userId ) : bool
eventId int
userId int
return bool