Exemplo n.º 1
0
 def __init__(self, jevent: JavaObject) -> None:
     self._id: uuid.UUID = uuid.UUID(jevent.id().toString())
     self._runId: uuid.UUID = uuid.UUID(jevent.runId().toString())
     jexception = jevent.exception()
     self._exception: Optional[str] = jexception.get(
     ) if jexception.isDefined() else None
Exemplo n.º 2
0
 def __init__(self, jevent: JavaObject) -> None:
     self._id: uuid.UUID = uuid.UUID(jevent.id().toString())
     self._runId: uuid.UUID = uuid.UUID(jevent.runId().toString())
     self._name: Optional[str] = jevent.name()
     self._timestamp: str = jevent.timestamp()