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, updated_intent=None, slot_to_confirm=None):
# type: (Optional[Intent], Optional[str]) -> None
"""
:param updated_intent:
:type updated_intent: (optional) ask_sdk_model.intent.Intent
:param slot_to_confirm:
:type slot_to_confirm: (optional) str
"""
self.__discriminator_value = "Dialog.ConfirmSlot" # type: str
self.object_type = self.__discriminator_value
super(ConfirmSlotDirective, self).__init__(object_type=self.__discriminator_value)
self.updated_intent = updated_intent
self.slot_to_confirm = slot_to_confirm
def __eq__(self, other):
# type: (object) -> bool
"""Returns true if both objects are equal"""
if not isinstance(other, ConfirmSlotDirective):
return False
return self.__dict__ == other.__dict__