Class NotificationRepository
- Namespace
- Oqtane.Repository
- Assembly
- Oqtane.Server.dll
public class NotificationRepository : INotificationRepository
- Inheritance
-
NotificationRepository
- Implements
-
Constructors
NotificationRepository(IDbContextFactory<TenantDBContext>)
public NotificationRepository(IDbContextFactory<TenantDBContext> dbContextFactory)
Parameters
dbContextFactory
IDbContextFactory<TenantDBContext>
Methods
AddNotification(Notification)
public Notification AddNotification(Notification notification)
Parameters
notification
Notification
Returns
- Notification
DeleteNotification(int)
public void DeleteNotification(int notificationId)
Parameters
notificationId
int
DeleteNotifications(int, int)
public int DeleteNotifications(int siteId, int age)
Parameters
siteId
int
age
int
Returns
- int
GetNotification(int)
public Notification GetNotification(int notificationId)
Parameters
notificationId
int
Returns
- Notification
GetNotification(int, bool)
public Notification GetNotification(int notificationId, bool tracking)
Parameters
notificationId
int
tracking
bool
Returns
- Notification
GetNotificationCount(int, int, int, bool)
public int GetNotificationCount(int siteId, int fromUserId, int toUserId, bool isRead)
Parameters
siteId
int
fromUserId
int
toUserId
int
isRead
bool
Returns
- int
GetNotifications(int, int, int)
public IEnumerable<Notification> GetNotifications(int siteId, int fromUserId, int toUserId)
Parameters
siteId
int
fromUserId
int
toUserId
int
Returns
- IEnumerable<Notification>
GetNotifications(int, int, int, int, bool)
public IEnumerable<Notification> GetNotifications(int siteId, int fromUserId, int toUserId, int count, bool isRead)
Parameters
siteId
int
fromUserId
int
toUserId
int
count
int
isRead
bool
Returns
- IEnumerable<Notification>
UpdateNotification(Notification)
public Notification UpdateNotification(Notification notification)
Parameters
notification
Notification
Returns
- Notification