Table of Contents

Class DataManager

Namespace
ONITwitchLib
Assembly
ONITwitchLib.dll

Provides methods to manipulate data of EventInfos

[PublicAPI]
public class DataManager
Inheritance
DataManager
Inherited Members

Properties

Instance

The instance of the data manager. Only safe to access if the Twitch mod is active.

[PublicAPI]
[NotNull]
public static DataManager Instance { get; }

Property Value

DataManager

Methods

GetDataForEvent(EventInfo)

Gets the data for an event.

[PublicAPI]
[Pure]
[CanBeNull]
public object GetDataForEvent(EventInfo info)

Parameters

info EventInfo

The EventInfo for the event to get data for.

Returns

object

The data for the event, if it exists, otherwise null

SetDataForEvent(EventInfo, object)

Sets the data for an event.

[PublicAPI]
public void SetDataForEvent(EventInfo info, object data)

Parameters

info EventInfo

The EventInfo for the event to modify.

data object

The new data for the event.