Class NotificationController
Inheritance
System.Object
NotificationController
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Simplic.Framework.Core
Assembly: Simplic.Framework.Base.dll
Syntax
public class NotificationController
Constructors
| Improve this Doc View SourceNotificationController()
Constructor
Declaration
public NotificationController()
Methods
| Improve this Doc View SourceCloseNotification(Int32)
Close a notification by its id
Declaration
public static void CloseNotification(int NotificationId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | NotificationId | Ident of a notification |
CreateGroupNotification(Int32, Notification)
Create new notification and display them for all users in a group
Declaration
public static void CreateGroupNotification(int GroupId, Notification Notification)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | GroupId | Group Id |
Notification | Notification | Instance of a Notification-Object |
CreateUserNotification(Int32, Notification)
Create new notification
Declaration
public static void CreateUserNotification(int UserId, Notification Notification)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | UserId | User Id |
Notification | Notification | Instance of a Notification-Object |
GetOpenNotification()
Get all Notification for the current user
Declaration
public static IList<Notification> GetOpenNotification()
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<Notification> | List of Notifications Status = Open) |
GetOpenNotification(Int32)
Get all Notification for a given user
Declaration
public static IList<Notification> GetOpenNotification(int UserId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | UserId | User Id |
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<Notification> | List of Notifications Status = Open) |