Package com.moesif.api.models
Class UserBuilder
java.lang.Object
com.moesif.api.models.UserBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the instance with the given valuescampaign(CampaignModel campaign) the campaignCompany_id associated with the user if knownLast seen IP Address of the user if knownCustom user metadata as a JSON objectmodifiedTime(Date modifiedTime) Timestamp of when user was updated.sessionToken(String sessionToken) End user's auth/session tokenuserAgentString(String userAgentString) 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"End user's user_id string from your app
-
Constructor Details
-
UserBuilder
public UserBuilder()Default constructor to initialize the instance
-
-
Method Details
-
userId
End user's user_id string from your app- Parameters:
userId- the field to set- Returns:
- itself
-
companyId
Company_id associated with the user if known- Parameters:
companyId- the field to set- Returns:
- itself
-
modifiedTime
Timestamp of when user was updated. (Moesif will use the current time if not set)- Parameters:
modifiedTime- the field to set- Returns:
- itself
-
ipAddress
Last seen IP Address of the user if known- Parameters:
ipAddress- the field to set- Returns:
- itself
-
sessionToken
End user's auth/session token- Parameters:
sessionToken- the field to set- Returns:
- itself
-
userAgentString
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:
userAgentString- the field to set- Returns:
- itself
-
metadata
Custom user metadata as a JSON object- Parameters:
metadata- the field to set- Returns:
- itself
-
campaign
the campaign- Parameters:
campaign- the field to set- Returns:
- itself
-
build
Build the instance with the given values- Returns:
- The built UserModel
-