package mx.gob.jumapacelaya.models;

import com.nimbusds.jose.shaded.gson.JsonArray;
import com.nimbusds.jose.shaded.gson.annotations.SerializedName;

public class JsonOrder {

    @SerializedName("issue")
    private IssueDetails issue;

    public JsonOrder(IssueDetails issue) {
        this.issue = issue;
    }

    public static class IssueDetails {
        @SerializedName("project_id")
        private String projectId;
        @SerializedName("subject")
        private String subject;
        @SerializedName("description")
        private String description;
        @SerializedName("uploads")
        private JsonArray uploads;
        private String tracker_id;

        public IssueDetails(String projectId, String subject, String description, JsonArray uploads, String tracker_id) {
            this.projectId = projectId;
            this.subject = subject;
            this.description = description;
            this.uploads = uploads;
            this.tracker_id = tracker_id;
        }
    }

    public static class FileUpload {
        @SerializedName("token")
        private String token;
        @SerializedName("filename")
        private String filename;
        @SerializedName("content_type")
        private String contentType;

        public FileUpload(String token, String filename, String contentType) {
            this.token = token;
            this.filename = filename;
            this.contentType = contentType;
        }
    }
}
