All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.moesif.api.models.UserModel Maven / Gradle / Ivy

The newest version!
/*
 * 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 String companyId;
    private Date modifiedTime;
    private String ipAddress;
    private String sessionToken;
    private String userAgentString;
    private Object metadata;
    private CampaignModel campaign;
    /** 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
     * Company_id associated with the user if known
     * @return the value
     */
    @JsonGetter("company_id")
    public String getCompanyId( ) {
        return this.companyId;
    }

    /** SETTER
     * Company_id associated with the user if known
     * @param value the value to set
     */
    @JsonSetter("company_id")
    public void setCompanyId (String value) {
        this.companyId = 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;
    }

    /** GETTER
     * the campaign object
     * @return the value
     */
    @JsonGetter("campaign")
    public CampaignModel getCampaign ( ) {
        return this.campaign;
    }
    
    /** SETTER
     * the campaign object
     * @param value the value to set
     */
    @JsonSetter("campaign")
    public void setCampaign (CampaignModel value) {
        this.campaign = value;
    }
}
 




© 2015 - 2024 Weber Informatics LLC | Privacy Policy