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

com.siftscience.model.EventsApiRequestFieldSet Maven / Gradle / Ivy

There is a newer version: 3.16.0
Show newest version
package com.siftscience.model;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import com.siftscience.FieldSet;

public abstract class EventsApiRequestFieldSet> extends
        FieldSet {
    @Expose @SerializedName(USER_ID) private String userId;
    @Expose @SerializedName(SESSION_ID) private String sessionId;
    @Expose @SerializedName(TIME) private Long time;
    @Expose @SerializedName(IP) private String ip;

    public T setCustomField(String key, Number val) {
        return super.setCustomField(key, val);
    }

    public T setCustomField(String key, Boolean val) {
        return super.setCustomField(key, val);
    }

    public T setCustomField(String key, String val) {
        return super.setCustomField(key, val);
    }

    protected T clearCustomField(String key) {
        return super.clearCustomField(key);
    }

    protected T clearCustomFields() {
        return super.clearCustomFields();
    }

    @Override
    protected boolean shouldJsonSerializeApiKey() {
        return true;
    }

    public String getUserId() {
        return userId;
    }

    public T setUserId(String userId) {
        this.userId = userId;
        return (T) this;
    }

    public String getSessionId() {
        return sessionId;
    }

    public T setSessionId(String sessionId) {
        this.sessionId = sessionId;
        return (T) this;
    }

    public Long getTime() {
        return time;
    }

    public T setTime(Long time) {
        this.time = time;
        return (T) this;
    }

    public String getIp() {
        return ip;
    }

    public T setIp(String ip) {
        this.ip = ip;
        return (T) this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy