Constructors
constructor
- new Customer(id, name, image, websocketClient): Customer
-
Parameters
-
-
name: undefined | string
-
image: undefined | string
-
Methods
getCustomFields
- getCustomFields(): CustomFieldsObject
-
Returns CustomFieldsObject
getCustomFieldsArray
- getCustomFieldsArray(): Id<Partial<Pick<{
ident: string;
value: null | string;
}, never>> & RequiredProps<{
ident: string;
value: null | string;
}>>[]
-
Returns Id<Partial<Pick<{
ident: string;
value: null | string;
}, never>> & RequiredProps<{
ident: string;
value: null | string;
}>>[]
getName
- getName(): undefined | string
-
Returns undefined | string
setCustomField
- setCustomField(name, value): undefined | Promise<ChatEventData>
-
Parameters
-
name: string
-
value: null | string
Returns undefined | Promise<ChatEventData>
setCustomFields
- setCustomFields(customFields): undefined | Promise<ChatEventData>
-
Parameters
-
customFields: CustomFieldsObject
Returns undefined | Promise<ChatEventData>
setCustomFieldsFromArray
- setCustomFieldsFromArray(customFields): void
-
Parameters
-
customFields: Id<Partial<Pick<{
ident: string;
value: null | string;
}, never>> & RequiredProps<{
ident: string;
value: null | string;
}>>[]
Returns void
setExists
- setExists(exists): void
-
Returns void
setImage
- setImage(image?): void
-
Returns void
setName
- setName(name?): void
-
Returns void
Static
getIdOrCreateNewOne
Static
getImage
- getImage(): undefined | string
-
Returns undefined | string
Static
getName
- getName(): undefined | string
-
Returns undefined | string
Static
setId
- setId(id): void
-
Returns void
Static
setImage
- setImage(image?): void
-
Returns void
Static
setName
- setName(name?): void
-
Returns void
Get Customer Custom fields (as object)