ContactCustomFieldsProvider
public protocol ContactCustomFieldsProvider
The provider for chat fields related properties and methods.
-
Custom fields for current chat case.
Declaration
Swift
func get(for threadId: UUID) -> [String : String]
Parameters
threadId
The unique identifier of the thread for the custom fields.
Return Value
Dictionary of custom fields for current chat case.
-
Sets custom fields to be saved on a contact (specific thread).
Throws
notConnected
if an attempt was made to use a method without connecting first. Make sure you call theconnect
method first.Throws
customerAssociationFailure
if the SDK could not get customer identity and it may not have been set.Throws
invalidData
when the Data object cannot be successfully converted to a valid UTF-8 stringThrows
EncodingError.invalidValue(_:_:)
if the given value is invalid in the current context for this format.Declaration
Swift
func set(_ customFields: [String : String], for threadId: UUID) throws
Parameters
customFields
The custom fields to be saved.
threadId
The unique identifier of the thread for the custom fields.