com.moesif.api.models.UserModel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of moesifapi Show documentation
Show all versions of moesifapi Show documentation
Java API Library for Moesif
/*
* MoesifAPILib
*
*
*/
package com.moesif.api.models;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonSetter;
import com.moesif.api.Configuration;
import java.util.*;
public class UserModel
implements java.io.Serializable {
private static final long serialVersionUID = -5678430578597637724L;
private String userId;
private Date modifiedTime;
private String ipAddress;
private String sessionToken;
private String userAgentString;
private Object metadata;
/** GETTER
* End user's user_id string from your app
* @return the value
*/
@JsonGetter("user_id")
public String getUserId ( ) {
return this.userId;
}
/** SETTER
* End user's user_id string from your app
* @param value the value to set
*/
@JsonSetter("user_id")
public void setUserId (String value) {
this.userId = value;
}
/** GETTER
* Timestamp of when user was updated. (Moesif will use the current time if not set)
* @return the value
*/
@JsonGetter("modified_time")
@JsonFormat(pattern = Configuration.DateTimeFormat)
public Date getModifiedTime( ) {
return this.modifiedTime;
}
/** SETTER
* Timestamp of when user was updated. (Moesif will use the current time if not set)
* @param value the value to set
*/
@JsonSetter("modified_time")
public void setModifiedTime (Date value) {
this.modifiedTime = value;
}
/** GETTER
* Last seen IP Address of the user if known
* @return the value
*/
@JsonGetter("ip_address")
public String getIpAddress ( ) {
return this.ipAddress;
}
/** SETTER
* Last seen IP Address of the user if known
* @param value the value to set
*/
@JsonSetter("ip_address")
public void setIpAddress (String value) {
this.ipAddress = value;
}
/** GETTER
* End user's auth/session token
* @return the value
*/
@JsonGetter("session_token")
public String getSessionToken ( ) {
return this.sessionToken;
}
/** SETTER
* End user's auth/session token
* @param value the value to set
*/
@JsonSetter("session_token")
public void setSessionToken (String value) {
this.sessionToken = value;
}
/** GETTER
* User Agent String of the user's device
* such as "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36"
* @return the value
*/
@JsonGetter("user_agent_string")
public String getUserAgentString ( ) {
return this.userAgentString;
}
/** SETTER
* User Agent String of the user's device
* such as "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36"
* @param value the value to set
*/
@JsonSetter("user_agent_string")
public void setUserAgentString (String value) {
this.userAgentString = value;
}
/** GETTER
* Custom user metadata as a JSON object
* @return the value
*/
@JsonGetter("metadata")
public Object getMetadata ( ) {
return this.metadata;
}
/** SETTER
* Custom user metadata as a JSON object
* @param value the value to set
*/
@JsonSetter("metadata")
public void setMetadata (Object value) {
this.metadata = value;
}
}