Class Notification
Notification for use in server side and for storage. Client side uses manually created NotificationView representation
Inheritance
System.Object
Notification
Assembly: Eco.Gameplay.dll
Syntax
public abstract class Notification : Object, ISerializable, IBsonSerializable, IHasCreationTime
Constructors
Notification()
Declaration
Notification(NotificationCategory, LocString, NotificationStyle)
Declaration
protected Notification(NotificationCategory category, LocString localizedText, NotificationStyle style)
Parameters
Properties
Category
Declaration
public NotificationCategory Category { get; set; }
Property Value
LocalizedText
Declaration
public LocString LocalizedText { get; set; }
Property Value
Style
Declaration
public NotificationStyle Style { get; set; }
Property Value
Text
Declaration
public string Text { get; set; }
Property Value
Type |
Description |
System.String |
|
TimeSeconds
Declaration
public double TimeSeconds { get; set; }
Property Value
Type |
Description |
System.Double |
|
Methods
GetOnlineReceivers()
Returns only online receivers as enumerable for the Notification.
Declaration
public abstract IEnumerable<User> GetOnlineReceivers()
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<User> |
|
GetReceivers()
Declaration
public abstract IEnumerable<User> GetReceivers()
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<User> |
|
HasReceiver(User)
Checks if the notification has receiver
.
Declaration
public abstract bool HasReceiver(User receiver)
Parameters
Type |
Name |
Description |
User |
receiver |
|
Returns
Type |
Description |
System.Boolean |
|
ToBson()
Declaration
public BSONArray ToBson()
Returns
Implements
Extension Methods