package tv.pluto.mongo.entities.clips;

import com.google.gson.annotations.JsonAdapter;
import java.util.Date;
import lombok.Data;
import lombok.NoArgsConstructor;
import tv.pluto.mongo.utils.json.DateAdapter;

@Data
@NoArgsConstructor
public class TranscodeObject {
  private String state = "";

  @JsonAdapter(DateAdapter.class)
  private Date updatedAt;

  private String jobId;
  private String error;
  private String code;
  private TranscodeSource source = new TranscodeSource();
  private TranscodeProfile profile = new TranscodeProfile();

  public String getCode() {
    return code == null ? "" : code;
  }

  public String getError() {
    return error == null ? "" : error;
  }

  public String getJobId() {
    return jobId == null ? "" : jobId;
  }
}
