def validate_actions(actions): assert (isinstance(actions, list)) for a in actions: assert (validate_email(a) or validate_international_phonenumber(a) or validate_instance_action(a) or validate_groupnotification_action(a))
def get_action_type(self, action): if validate_email(action): return "email" elif validate_international_phonenumber(action): return "SMS" elif validate_instance_action(action): return "InstanceAction" elif validate_groupnotification_action(action): return "GroupNotificationAction"
def get_action_type(self, action): if validate_email(action): return "email" elif validate_international_phonenumber(action): return "SMS"
def validate_actions(actions): assert isinstance(actions, list) for a in actions: assert validate_email(a) or validate_international_phonenumber(a)