Show / Hide Table of Contents

Class NotificationDataPartition

Persistent Notification Data. May be used as stand-alone notification storage or as a partition of PartitionedData<TPartition, TEntry> (as used in NotificationManager).

Inheritance
System.Object
NotificationDataPartition
Implements
IStoredDataPartition<Notification>
IDataPartition<Notification>
IStorage
ISerializable
Namespace: Eco.Gameplay.Systems.Messaging.Notifications
Assembly: Eco.Gameplay.dll
Syntax
public class NotificationDataPartition : Object, IStoredDataPartition<Notification>, IDataPartition<Notification>, IStorage, ISerializable

Constructors

NotificationDataPartition()

Declaration
public NotificationDataPartition()

Properties

Entries

Declaration
public ThreadSafeList<Notification> Entries { get; }
Property Value
Type Description
ThreadSafeList<Notification>

NumEntries

Declaration
public int NumEntries { get; }
Property Value
Type Description
System.Int32

StorageHandle

Declaration
public IPersistent StorageHandle { get; set; }
Property Value
Type Description
IPersistent

Methods

AddEntry(Notification)

Declaration
public void AddEntry(Notification notification)
Parameters
Type Name Description
Notification notification

GetEnumerable()

Declaration
public IEnumerable<Notification> GetEnumerable()
Returns
Type Description
System.Collections.Generic.IEnumerable<Notification>

RemoveAll(Predicate<Notification>)

Removes all entries matching predicate and returns number of removed entries.

Declaration
public int RemoveAll(Predicate<Notification> predicate)
Parameters
Type Name Description
System.Predicate<Notification> predicate
Returns
Type Description
System.Int32

Implements

IStoredDataPartition<T>
IDataPartition<T>
IStorage
ISerializable

Extension Methods

TagUtils.TagNames(Object, Boolean)
TagUtils.TagDisplayNames(Object, Boolean)
ClientSetViewExtensions.SetClassOfProperty(Object, Player, String, String, Int32)
TypeTooltipExtensions.UILinkGeneric(Object)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾