Ejemplo n.º 1
0
 async def set_location(self, latitude: float, longitude: float) -> None:
     async with self.get_stub() as stub:
         await stub.set_location(
             SetLocationRequest(
                 location=Location(latitude=latitude, longitude=longitude)
             )
         )
Ejemplo n.º 2
0
 async def set_location(self, latitude: float, longitude: float) -> None:
     await self.stub.set_location(
         SetLocationRequest(
             location=Location(latitude=latitude, longitude=longitude)))
Ejemplo n.º 3
0
async def client(client: CompanionClient, latitude: float,
                 longitude: float) -> None:
    await client.stub.set_location(
        SetLocationRequest(
            location=Location(latitude=latitude, longitude=longitude)))