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

com.siftscience.model.DecisionLog 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;

public class DecisionLog extends BaseResponseBody {
    @Expose @SerializedName("entity") private EntityJson entity;
    @Expose @SerializedName("decision") private DecisionSourceJson decision;
    @Expose @SerializedName("time") private Long time;

    private class EntityJson {
        @Expose @SerializedName("id") private String id;
        @Expose @SerializedName("type") private String type;
    }

    private static class DecisionSourceJson {
        @Expose @SerializedName("id") private String id;
    }

    public static DecisionLog fromJson(String json) {
        return gson.fromJson(json, DecisionLog.class);
    }

    public EntityJson getEntity() {
        return entity;
    }

    public DecisionSourceJson getDecision() {
        return decision;
    }

    public Long getTime() {
        return time;
    }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy