com.algolia.model.personalization.GetUserTokenResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of algoliasearch Show documentation
Show all versions of algoliasearch Show documentation
Java client for Algolia Search API
The newest version!
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost
// - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
package com.algolia.model.personalization;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.*;
import java.util.Objects;
/** GetUserTokenResponse */
public class GetUserTokenResponse {
@JsonProperty("userToken")
private String userToken;
@JsonProperty("lastEventAt")
private String lastEventAt;
@JsonProperty("scores")
private Object scores;
public GetUserTokenResponse setUserToken(String userToken) {
this.userToken = userToken;
return this;
}
/**
* Unique pseudonymous or anonymous user identifier. This helps with analytics and click and
* conversion events. For more information, see [user
* token](https://www.algolia.com/doc/guides/sending-events/concepts/usertoken/).
*/
@javax.annotation.Nonnull
public String getUserToken() {
return userToken;
}
public GetUserTokenResponse setLastEventAt(String lastEventAt) {
this.lastEventAt = lastEventAt;
return this;
}
/** Date and time of the last event from this user, in RFC 3339 format. */
@javax.annotation.Nonnull
public String getLastEventAt() {
return lastEventAt;
}
public GetUserTokenResponse setScores(Object scores) {
this.scores = scores;
return this;
}
/**
* Scores for different facet values. Scores represent the user affinity for a user profile
* towards specific facet values, given the personalization strategy and past events.
*/
@javax.annotation.Nonnull
public Object getScores() {
return scores;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
GetUserTokenResponse getUserTokenResponse = (GetUserTokenResponse) o;
return (
Objects.equals(this.userToken, getUserTokenResponse.userToken) &&
Objects.equals(this.lastEventAt, getUserTokenResponse.lastEventAt) &&
Objects.equals(this.scores, getUserTokenResponse.scores)
);
}
@Override
public int hashCode() {
return Objects.hash(userToken, lastEventAt, scores);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class GetUserTokenResponse {\n");
sb.append(" userToken: ").append(toIndentedString(userToken)).append("\n");
sb.append(" lastEventAt: ").append(toIndentedString(lastEventAt)).append("\n");
sb.append(" scores: ").append(toIndentedString(scores)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy