Globals

C# Methods for Core > Globals

ClearNonPersistedGlobals

Remove all non-persisted global variables

public void ClearNonPersistedGlobals()

ClearNonPersistedUserGlobals

Remove all non-persisted global user variables

public void ClearNonPersistedUserGlobals()

GetGlobalVar<T>

Fetch a global variable by name

public T GetGlobalVar<T>(string varName, bool persisted = true)

GetGlobalVarValues

Fetch a list of all global variable values

public List<GlobalVariableValue> GetGlobalVarValues(bool persisted = true)

GetUserVar<T>

Use Twitch and YouTube methods instead

Deprecated
public T GetUserVar<T>(string userName, string varName, bool persisted = true)

SetGlobalVar

Set the value for a global variable

public void SetGlobalVar(string varName, object value, bool persisted = true)

SetUserVar

Use Twitch and YouTube methods instead

Deprecated
public void SetUserVar(string userName, string varName, object value, bool persisted = true)

UnsetAllUsersVar

Unset a user variable for all users

0.2.1
public void UnsetAllUsersVar(string varName, bool persisted = true)

UnsetGlobalVar

Remove a global variable by name

public void UnsetGlobalVar(string varName, bool persisted = true)

UnsetUser

Use Twitch and YouTube methods instead

Deprecated
public void UnsetUser(string userName, bool persisted = true)

UnsetUserVar

Use Twitch and YouTube methods instead

Deprecated
public void UnsetUserVar(string userName, string varName, bool persisted = true)