package com.adx.tracking.storage.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.Instant;

/** 对应 Go storage.MediaCallbackRecord */
public class MediaCallbackRecord {
    @JsonProperty("dedupeKey")    private String dedupeKey;
    @JsonProperty("media")        private String media;
    @JsonProperty("qk")           private String qk;
    @JsonProperty("callbackUrl")  private String callbackUrl;
    @JsonProperty("eventType")    private int eventType;
    @JsonProperty("eventTimeMs")  private long eventTimeMs;
    @JsonProperty("purchase")     private double purchase;
    @JsonProperty("status")       private int status;
    @JsonProperty("ok")           private boolean ok;
    @JsonProperty("attempt")      private int attempt;
    @JsonProperty("responseBody") private String responseBody;
    @JsonProperty("errorMessage") private String errorMessage;
    @JsonProperty("createdAt")    private Instant createdAt;

    public String getDedupeKey() { return dedupeKey; }
    public void setDedupeKey(String v) { this.dedupeKey = v; }
    public String getMedia() { return media; }
    public void setMedia(String v) { this.media = v; }
    public String getQk() { return qk; }
    public void setQk(String v) { this.qk = v; }
    public String getCallbackUrl() { return callbackUrl; }
    public void setCallbackUrl(String v) { this.callbackUrl = v; }
    public int getEventType() { return eventType; }
    public void setEventType(int v) { this.eventType = v; }
    public long getEventTimeMs() { return eventTimeMs; }
    public void setEventTimeMs(long v) { this.eventTimeMs = v; }
    public double getPurchase() { return purchase; }
    public void setPurchase(double v) { this.purchase = v; }
    public int getStatus() { return status; }
    public void setStatus(int v) { this.status = v; }
    public boolean isOk() { return ok; }
    public void setOk(boolean v) { this.ok = v; }
    public int getAttempt() { return attempt; }
    public void setAttempt(int v) { this.attempt = v; }
    public String getResponseBody() { return responseBody; }
    public void setResponseBody(String v) { this.responseBody = v; }
    public String getErrorMessage() { return errorMessage; }
    public void setErrorMessage(String v) { this.errorMessage = v; }
    public Instant getCreatedAt() { return createdAt; }
    public void setCreatedAt(Instant v) { this.createdAt = v; }
}
