-
public interface VisitorInfoUpdateRequestObject that can be used for updating the visitor's information on the server.
Construct instance of this object using Builder.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumVisitorInfoUpdateRequest.NoteUpdateMethodSpecifies a method for updating the visitor's note.
public enumVisitorInfoUpdateRequest.CustomAttributesUpdateMethodSpecifies the method for updating custom attributes.
public classVisitorInfoUpdateRequest.BuilderUsed for creating the VisitorInfoUpdateRequest.
If some visitor information is not set or is
{@code null}then it will not be updated on the server.Usage example:LinkedTreeMapcustomAttributes = new LinkedTreeMap<>(); customAttributes.put("age", "21+"); customAttributes.put("custom_id", "H5AC76"); Glia.updateVisitorInfo( new VisitorInfoUpdateRequest.Builder() .setName("Mr. Example Man") .setEmail("mr.example.man@email.com") .setCustomAttributes(customAttributes) .build(), error -> { /* Handle callback */ } );
-
Method Summary
Modifier and Type Method Description abstract StringgetName()The visitor's name. abstract StringgetEmail()The visitor's email. abstract StringgetPhone()The visitor's phone number. abstract StringgetNote()The notes associated with the visitor. abstract StringgetExternalId()External ID to be used in third-party integrations. abstract VisitorInfoUpdateRequest.NoteUpdateMethodgetNoteUpdateMethod()Specifies a method for updating the visitor's note. abstract VisitorInfoUpdateRequest.CustomAttributesUpdateMethodgetCustomAttrsUpdateMethod()Specifies the method for updating custom attributes. abstract LinkedTreeMap<String, String>getCustomAttributes()An object with custom key-value pairs to be assigned to the visitor. -
-
Method Detail
-
getNote
abstract String getNote()
The notes associated with the visitor.
See also getNoteUpdateMethod
-
getExternalId
@Nullable() abstract String getExternalId()
External ID to be used in third-party integrations.
-
getNoteUpdateMethod
abstract VisitorInfoUpdateRequest.NoteUpdateMethod getNoteUpdateMethod()
Specifies a method for updating the visitor's note.
See NoteUpdateMethod for detailsDefault value is APPEND
-
getCustomAttrsUpdateMethod
abstract VisitorInfoUpdateRequest.CustomAttributesUpdateMethod getCustomAttrsUpdateMethod()
Specifies the method for updating custom attributes.
See CustomAttributesUpdateMethod for detailsDefault value is MERGE
-
getCustomAttributes
abstract LinkedTreeMap<String, String> getCustomAttributes()
An object with custom key-value pairs to be assigned to the visitor.
See also getCustomAttrsUpdateMethod
-
-
-
-