Table of Contents

Interface INotificationRepository

Namespace
Oqtane.Repository
Assembly
Oqtane.Server.dll
public interface INotificationRepository

Methods

AddNotification(Notification)

Notification AddNotification(Notification notification)

Parameters

notification Notification

Returns

Notification

DeleteNotification(int)

void DeleteNotification(int notificationId)

Parameters

notificationId int

DeleteNotifications(int, int)

int DeleteNotifications(int siteId, int age)

Parameters

siteId int
age int

Returns

int

GetNotification(int)

Notification GetNotification(int notificationId)

Parameters

notificationId int

Returns

Notification

GetNotification(int, bool)

Notification GetNotification(int notificationId, bool tracking)

Parameters

notificationId int
tracking bool

Returns

Notification

GetNotificationCount(int, int, int, bool)

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)

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)

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)

Notification UpdateNotification(Notification notification)

Parameters

notification Notification

Returns

Notification