Method: PureCloud::ConversationNotificationEmails#valid?

Defined in:
lib/purecloudplatformclientv2/models/conversation_notification_emails.rb

#valid?Boolean

Check to see if the all the properties in the model are valid

Returns:

  • (Boolean)

    true if the model is valid



148
149
150
151
152
153
154
155
156
157
# File 'lib/purecloudplatformclientv2/models/conversation_notification_emails.rb', line 148

def valid?
  allowed_values = ["ALERTING", "CONNECTED", "DISCONNECTED", "NONE"]
  if @state && !allowed_values.include?(@state)
    return false
  end
  allowed_values = ["ENDPOINT", "CLIENT", "SYSTEM", "TIMEOUT", "TRANSFER", "TRANSFER_CONFERENCE", "TRANSFER_CONSULT", "TRANSFER_FORWARD", "TRANSFER_NOANSWER", "TRANSFER_NOTAVAILABLE", "TRANSPORT_FAILURE", "ERROR", "PEER", "OTHER", "SPAM", "UNCALLABLE"]
  if @disconnect_type && !allowed_values.include?(@disconnect_type)
    return false
  end
end