Package com.moesif.api.models
Class UserModel
- java.lang.Object
-
- com.moesif.api.models.UserModel
-
- All Implemented Interfaces:
Serializable
public class UserModel extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UserModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CampaignModelgetCampaign()GETTER the campaign objectStringgetCompanyId()GETTER Company_id associated with the user if knownStringgetIpAddress()GETTER Last seen IP Address of the user if knownObjectgetMetadata()GETTER Custom user metadata as a JSON objectDategetModifiedTime()GETTER Timestamp of when user was updated.StringgetSessionToken()GETTER End user's auth/session tokenStringgetUserAgentString()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"StringgetUserId()GETTER End user's user_id string from your appvoidsetCampaign(CampaignModel value)SETTER the campaign objectvoidsetCompanyId(String value)SETTER Company_id associated with the user if knownvoidsetIpAddress(String value)SETTER Last seen IP Address of the user if knownvoidsetMetadata(Object value)SETTER Custom user metadata as a JSON objectvoidsetModifiedTime(Date value)SETTER Timestamp of when user was updated.voidsetSessionToken(String value)SETTER End user's auth/session tokenvoidsetUserAgentString(String value)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"voidsetUserId(String value)SETTER End user's user_id string from your app
-
-
-
Method Detail
-
getUserId
public String getUserId()
GETTER End user's user_id string from your app- Returns:
- the value
-
setUserId
public void setUserId(String value)
SETTER End user's user_id string from your app- Parameters:
value- the value to set
-
getCompanyId
public String getCompanyId()
GETTER Company_id associated with the user if known- Returns:
- the value
-
setCompanyId
public void setCompanyId(String value)
SETTER Company_id associated with the user if known- Parameters:
value- the value to set
-
getModifiedTime
public Date getModifiedTime()
GETTER Timestamp of when user was updated. (Moesif will use the current time if not set)- Returns:
- the value
-
setModifiedTime
public void setModifiedTime(Date value)
SETTER Timestamp of when user was updated. (Moesif will use the current time if not set)- Parameters:
value- the value to set
-
getIpAddress
public String getIpAddress()
GETTER Last seen IP Address of the user if known- Returns:
- the value
-
setIpAddress
public void setIpAddress(String value)
SETTER Last seen IP Address of the user if known- Parameters:
value- the value to set
-
getSessionToken
public String getSessionToken()
GETTER End user's auth/session token- Returns:
- the value
-
setSessionToken
public void setSessionToken(String value)
SETTER End user's auth/session token- Parameters:
value- the value to set
-
getUserAgentString
public String getUserAgentString()
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"- Returns:
- the value
-
setUserAgentString
public void setUserAgentString(String value)
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"- Parameters:
value- the value to set
-
getMetadata
public Object getMetadata()
GETTER Custom user metadata as a JSON object- Returns:
- the value
-
setMetadata
public void setMetadata(Object value)
SETTER Custom user metadata as a JSON object- Parameters:
value- the value to set
-
getCampaign
public CampaignModel getCampaign()
GETTER the campaign object- Returns:
- the value
-
setCampaign
public void setCampaign(CampaignModel value)
SETTER the campaign object- Parameters:
value- the value to set
-
-