OfflineForm

@objc(ZDKOfflineForm)
public final class OfflineForm : NSObject, ChatForm, PathValueProtocol

Offline form is formed from the given fields: visitor info - name, email, phone department - department id message - visitor’s message

  • Declaration

    Swift

    @objc
    public let visitorInfo: VisitorInfo?
  • department id

    Declaration

    Swift

    @objc
    public let departmentId: String?
  • offline message

    Declaration

    Swift

    @objc
    public let message: String
  • Offline form initiatlizer.

    Warning

    Make sure the email field is filled in the VisitorInfo, or the form will fail to send

    Declaration

    Swift

    @objc
    public init(visitorInfo: VisitorInfo?,
                departmentId: String?,
                message: String)

    Parameters

    visitorInfo

    visitor info

    departmentId

    Department Name

    message

    Message

Equatable

  • Returns a Boolean value that indicates whether the receiver and a given object are equal.

    Declaration

    Swift

    @objc
    override public func isEqual(_ object: Any?) -> Bool

    Parameters

    object

    the object to compare against