Exemplo n.º 1
0
    def GetClientCompletionStats(
            self) -> hunt_pb2.ApiGetHuntClientCompletionStatsResult:
        args = hunt_pb2.ApiGetHuntClientCompletionStatsArgs(
            hunt_id=self.hunt_id)

        response = self._context.SendRequest("GetHuntClientCompletionStats",
                                             args)
        if not isinstance(response,
                          hunt_pb2.ApiGetHuntClientCompletionStatsResult):
            raise TypeError(f"Unexpected response type: '{type(response)}'")

        return response
Exemplo n.º 2
0
 def GetClientCompletionStats(self):
     args = hunt_pb2.ApiGetHuntClientCompletionStatsArgs(
         hunt_id=self.hunt_id)
     return self._context.SendRequest("GetHuntClientCompletionStats", args)