public static ClientInfoRequest CreateRequestObject(CommsMarshaller.ObjectTokens objectType, string Id) { ClientInfoRequest req = new ClientInfoRequest { RequestObjectType = objectType, Id = Id }; return(req); }
/// <summary> /// Creates and sends a ClientInfoRequest to server /// </summary> /// <param name="objectToken">Objectoken from CommsMarshaller.ObjectTokens enum.</param> public void RequestObject(CommsMarshaller.ObjectTokens objectToken) { if (_client != null) { ClientInfoRequest req = ClientInfoRequest.CreateRequestObject(objectToken, ""); _client.Send(req); } }