예제 #1
0
        public static ClientInfoRequest CreateRequestObject(CommsMarshaller.ObjectTokens objectType, string Id)
        {
            ClientInfoRequest req = new ClientInfoRequest {
                RequestObjectType = objectType, Id = Id
            };

            return(req);
        }
예제 #2
0
 /// <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);
     }
 }