Globals

C# Methods for Trovo > Globals

GetTrovoUsersVar<T>

public List<UserVariableValue<T>> GetTrovoUsersVar<T>(string varName, bool persisted = true)

GetTrovoUserVar<T>

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

GetTrovoUserVarById<T>

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

IncrementAllTrovoUsersVar

Increments the value of a specific user global variable for all Trovo users

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

IncrementOrCreateTrovoUsersVarById

Increments the value of a specific user global variable for a specified Trovo user, by ID. If the variable doesn't exist, it creates a new one

0.2.4
public void IncrementOrCreateTrovoUsersVarById(List<string> userIds, string varName, object value, bool persisted = true)

IncrementTrovoUsersVarById

Increments the value of a specific user global variable for a specified Trovo user, by ID

0.2.4
public void IncrementTrovoUsersVarById(List<string> userIds, string varName, object value, bool persisted = true)

SetTrovoUsersVarById

public void SetTrovoUsersVarById(List<string> userIds, string varName, object value, bool persisted = true)

SetTrovoUserVar

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

SetTrovoUserVarById

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

UnsetTrovoUser

public void UnsetTrovoUser(string userName, bool persisted = true)

UnsetTrovoUserById

public void UnsetTrovoUserById(string userId, bool persisted = true)

UnsetTrovoUserVar

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

UnsetTrovoUserVarById

public void UnsetTrovoUserVarById(string userId, string varName, bool persisted = true)