public override string ToString() { return(ConstellationClient.ConvertEventTypesToStrings(new List <ConstellationEventType>() { this }).First()); }
private MethodPacket BuildUnsubscribeToEventsPacket(IEnumerable <ConstellationEventType> events) { Validator.ValidateList(events, "events"); IEnumerable <string> eventStrings = ConstellationClient.ConvertEventTypesToStrings(events); JObject parameters = new JObject(); parameters.Add("events", new JArray(eventStrings)); return(new MethodParamsPacket("liveunsubscribe", parameters)); }
/// <summary> /// Helper method to handle the reconnection of a web socket client. This method will return when /// a connection is able to successfully be established via the Connect() method. This method /// WILL NOT call any subsequent establishment methods (EX: Authenticate(), Ready(), etc). /// </summary> /// <param name="client">The web socket client to reconnect</param> /// <returns>A task for the reconnection of the websocket</returns> public static async Task Reconnect(ConstellationClient client) { await WebSocketClientBase.ReconnectionHelper(client); }