Package com.moesif.api.models
Class UserModel
java.lang.Object
com.moesif.api.models.UserModel
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGETTER the campaign objectGETTER Company_id associated with the user if knownGETTER Last seen IP Address of the user if knownGETTER Custom user metadata as a JSON objectGETTER Timestamp of when user was updated.GETTER End user's auth/session tokenGETTER 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"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"voidSETTER End user's user_id string from your app
-
Constructor Details
-
UserModel
public UserModel()
-
-
Method Details
-
getUserId
GETTER End user's user_id string from your app- Returns:
- the value
-
setUserId
SETTER End user's user_id string from your app- Parameters:
value- the value to set
-
getCompanyId
GETTER Company_id associated with the user if known- Returns:
- the value
-
setCompanyId
SETTER Company_id associated with the user if known- Parameters:
value- the value to set
-
getModifiedTime
GETTER Timestamp of when user was updated. (Moesif will use the current time if not set)- Returns:
- the value
-
setModifiedTime
SETTER Timestamp of when user was updated. (Moesif will use the current time if not set)- Parameters:
value- the value to set
-
getIpAddress
GETTER Last seen IP Address of the user if known- Returns:
- the value
-
setIpAddress
SETTER Last seen IP Address of the user if known- Parameters:
value- the value to set
-
getSessionToken
GETTER End user's auth/session token- Returns:
- the value
-
setSessionToken
SETTER End user's auth/session token- Parameters:
value- the value to set
-
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
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
GETTER Custom user metadata as a JSON object- Returns:
- the value
-
setMetadata
SETTER Custom user metadata as a JSON object- Parameters:
value- the value to set
-
getCampaign
GETTER the campaign object- Returns:
- the value
-
setCampaign
SETTER the campaign object- Parameters:
value- the value to set
-