Show / Hide Table of Contents

Interface IDataService

Namespace: DotNetNuke.Services.Social.Notifications.Data
Assembly: DotNetNuke.dll
Syntax
public interface IDataService

Methods

AddNotificationTypeAction(int, string, string, string, string, int)

Declaration
int AddNotificationTypeAction(int notificationTypeId, string nameResourceKey, string descriptionResourceKey, string confirmResourceKey, string apiCall, int createdByUserId)
Parameters
Type Name Description
int notificationTypeId
string nameResourceKey
string descriptionResourceKey
string confirmResourceKey
string apiCall
int createdByUserId
Returns
Type Description
int

CountNotifications(int, int)

Declaration
int CountNotifications(int userId, int portalId)
Parameters
Type Name Description
int userId
int portalId
Returns
Type Description
int

CreateNotificationType(string, string, int, int, int, bool)

Declaration
int CreateNotificationType(string name, string description, int timeToLive, int desktopModuleId, int createUpdateUserId, bool isTask)
Parameters
Type Name Description
string name
string description
int timeToLive
int desktopModuleId
int createUpdateUserId
bool isTask
Returns
Type Description
int

DeleteNotification(int)

Declaration
void DeleteNotification(int notificationId)
Parameters
Type Name Description
int notificationId

DeleteNotificationType(int)

Declaration
void DeleteNotificationType(int notificationTypeId)
Parameters
Type Name Description
int notificationTypeId

DeleteNotificationTypeAction(int)

Declaration
void DeleteNotificationTypeAction(int notificationTypeActionId)
Parameters
Type Name Description
int notificationTypeActionId

DeleteUserNotifications(int, int)

Declaration
int DeleteUserNotifications(int portalID, int userID)
Parameters
Type Name Description
int portalID
int userID
Returns
Type Description
int

GetNotification(int)

Declaration
IDataReader GetNotification(int notificationId)
Parameters
Type Name Description
int notificationId
Returns
Type Description
IDataReader

GetNotificationByContext(int, string)

Declaration
IDataReader GetNotificationByContext(int notificationTypeId, string context)
Parameters
Type Name Description
int notificationTypeId
string context
Returns
Type Description
IDataReader

GetNotificationType(int)

Declaration
IDataReader GetNotificationType(int notificationTypeId)
Parameters
Type Name Description
int notificationTypeId
Returns
Type Description
IDataReader

GetNotificationTypeAction(int)

Declaration
IDataReader GetNotificationTypeAction(int notificationTypeActionId)
Parameters
Type Name Description
int notificationTypeActionId
Returns
Type Description
IDataReader

GetNotificationTypeActionByName(int, string)

Declaration
IDataReader GetNotificationTypeActionByName(int notificationTypeId, string name)
Parameters
Type Name Description
int notificationTypeId
string name
Returns
Type Description
IDataReader

GetNotificationTypeActions(int)

Declaration
IDataReader GetNotificationTypeActions(int notificationTypeId)
Parameters
Type Name Description
int notificationTypeId
Returns
Type Description
IDataReader

GetNotificationTypeByName(string)

Declaration
IDataReader GetNotificationTypeByName(string name)
Parameters
Type Name Description
string name
Returns
Type Description
IDataReader

GetNotifications(int, int, int, int)

Declaration
IDataReader GetNotifications(int userId, int portalId, int afterNotificationId, int numberOfRecords)
Parameters
Type Name Description
int userId
int portalId
int afterNotificationId
int numberOfRecords
Returns
Type Description
IDataReader

GetToasts(int, int)

Declaration
IDataReader GetToasts(int userId, int portalId)
Parameters
Type Name Description
int userId
int portalId
Returns
Type Description
IDataReader

IsToastPending(int)

Declaration
bool IsToastPending(int notificationId)
Parameters
Type Name Description
int notificationId
Returns
Type Description
bool

MarkReadyForToast(int, int)

Declaration
void MarkReadyForToast(int notificationId, int userId)
Parameters
Type Name Description
int notificationId
int userId

MarkToastSent(int, int)

Declaration
void MarkToastSent(int notificationId, int userId)
Parameters
Type Name Description
int notificationId
int userId

SendNotification(Notification, int)

Declaration
int SendNotification(Notification notification, int portalId)
Parameters
Type Name Description
Notification notification
int portalId
Returns
Type Description
int

Extension Methods

JsonExtensionsWeb.ToJson(object)
Back to top by the community, for the community... #DNNCMS