コード例 #1
0
 def test_get_client_list_request_simple(self):
     request = server.ListClientsRequest()
     expectedXml = """
     <Request>
       <Type>ListClients</Type>
     </Request>
     """
     #print(request); print(request.serialize())
     self.assertEqualXml(expectedXml, request.serialize())
コード例 #2
0
ファイル: api.py プロジェクト: thetoster/awa_bootstrap
 def GetClientList(self, clientID):
     request = server.ListClientsRequest(session_id=self._session_id)
     response = ipc.send_request_and_receive_response(
         self._ipc, request.serialize())
     return server.ListClientsResponse(response).getClientIDs()
コード例 #3
0
 def list_clients(self):
     request = server.ListClientsRequest(self._session_id)
     response = self._send_request(request, server.ListClientsResponse)
     return response.getClientIDs()