private void Process() { Type = (WsEventsType)Enum.ToObject(typeof(WsEventsType), msg[0]); Payload = msg.Substring(1); }
public WsEvent(WsEventsType type, string payload) { Type = type; Payload = payload; }