Chat
C# Methods for Trovo > Chat
SendTrovoMessage
public void SendTrovoMessage(string message, bool bot = true)
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 values of Trovo user variables for a list of user IDs. If a variable does not exist for a user, a new one is created.
0.2.4
public void IncrementOrCreateTrovoUsersVarById(List<string> userIds, string varName, object value, bool persisted = true)
IncrementTrovoUsersVarById
Increments the values of Trovo user variables for a list of user IDs. Will only increment if variable exists
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)