com.algolia.search.models.recommendation.PersonalizationProfileResponse Maven / Gradle / Ivy
The newest version!
package com.algolia.search.models.recommendation;
import java.util.Map;
/** User profile built from Personalization strategy. */
public class PersonalizationProfileResponse {
/** The user token representing the user and associated data. */
private String userToken;
/** The last processed event timestamp using the ISO 8601 format. */
private String lastEventAt;
/**
* The profile is structured by facet name used in the strategy. Each facet value is mapped to its
* score. Each score represents the user affinity for a specific facet value given the {@link
* #userToken} past events and the Personalization strategy defined. Scores are bounded to 20.
*/
private Map scores;
public String getUserToken() {
return userToken;
}
public PersonalizationProfileResponse setUserToken(String userToken) {
this.userToken = userToken;
return this;
}
public String getLastEventAt() {
return lastEventAt;
}
public PersonalizationProfileResponse setLastEventAt(String lastEventAt) {
this.lastEventAt = lastEventAt;
return this;
}
public Map getScores() {
return scores;
}
public PersonalizationProfileResponse setScores(Map scores) {
this.scores = scores;
return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy