public async Task UpdateVariableAndPlay() { OvrStreamConnection connection = new OvrStreamConnection(OvrStreamWebSocketAddress); await connection.ConnectAsync(CancellationToken.None); Dictionary <string, string> variables = new Dictionary <string, string>(); variables.Add("Name", DateTime.Now.ToString()); await connection.UpdateVariablesAsync("Basic Follower Alert", variables, CancellationToken.None); await connection.ShowTitleAsync("Basic Follower Alert", "TestQueue", CancellationToken.None); await connection.DisconnectAsync(CancellationToken.None); }
public async Task UpdateVariableAndShowUpdateHide() { OvrStreamConnection connection = new OvrStreamConnection(OvrStreamWebSocketAddress); await connection.ConnectAsync(CancellationToken.None); Dictionary <string, string> variables = new Dictionary <string, string>(); variables.Add("Twitter_Username", "BEFORE"); await connection.UpdateVariablesAsync("Basic BRB Screen", variables, CancellationToken.None); await connection.ShowTitleAsync("Basic BRB Screen", "TestQueue", CancellationToken.None); await Task.Delay(4000); variables.Clear(); variables.Add("Twitter_Username", "AFTER"); await connection.UpdateVariablesAsync("Basic BRB Screen", variables, CancellationToken.None); await Task.Delay(4000); await connection.HideTitleAsync("Basic BRB Screen", "TestQueue", CancellationToken.None); await connection.DisconnectAsync(CancellationToken.None); }