Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, token=None, status=None, result=None):
# type: (Optional[str], Optional[Status], Optional[object]) -> None
"""Represents the status and result needed to resume a skill's suspended session.
:param token: This is an echo back string that skills send when during Connections.StartConnection directive. They will receive it when they get the SessionResumedRequest. It is never sent to the skill handling the request.
:type token: (optional) str
:param status:
:type status: (optional) ask_sdk_model.status.Status
:param result: This is the result object to resume the skill's suspended session.
:type result: (optional) object
"""
self.__discriminator_value = "ConnectionCompleted" # type: str
self.object_type = self.__discriminator_value
super(ConnectionCompleted, self).__init__(object_type=self.__discriminator_value)
self.token = token
self.status = status
self.result = result
def __eq__(self, other):
# type: (object) -> bool
"""Returns true if both objects are equal"""
if not isinstance(other, ConnectionCompleted):
return False
return self.__dict__ == other.__dict__