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

com.visenze.visearch.internal.json.InsertStatusMixin Maven / Gradle / Ivy

There is a newer version: 1.14.5
Show newest version
package com.visenze.visearch.internal.json;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.visenze.visearch.InsertError;

import java.util.Date;
import java.util.List;

@JsonIgnoreProperties(ignoreUnknown = true)
abstract class InsertStatusMixin {

    protected String transId;
    protected Integer processedPercent;
    protected Integer total;
    protected Integer successCount;
    protected Integer failCount;
    protected Date startTime;
    protected Date updateTime;
    protected List errorList;
    protected Integer errorPage;
    protected Integer errorLimit;

    public InsertStatusMixin(@JsonProperty("trans_id") String transId,
                             @JsonProperty("processed_percent") Integer processedPercent,
                             @JsonProperty("total") Integer total,
                             @JsonProperty("success_count") Integer successCount,
                             @JsonProperty("fail_count") Integer failCount,
                             @JsonProperty("start_time") Date startTime,
                             @JsonProperty("update_time") Date updateTime,
                             @JsonProperty("error_list") List errorList,
                             @JsonProperty("error_page") Integer errorPage,
                             @JsonProperty("error_limit") Integer errorLimit) {
        this.transId = transId;
        this.processedPercent = processedPercent;
        this.total = total;
        this.successCount = successCount;
        this.failCount = failCount;
        this.startTime = startTime;
        this.updateTime = updateTime;
        this.errorList = errorList;
        this.errorPage = errorPage;
        this.errorLimit = errorLimit;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy