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

com.hyperwallet.clientsdk.util.Multipart Maven / Gradle / Ivy

package com.hyperwallet.clientsdk.util;

import com.hyperwallet.clientsdk.model.HyperwalletVerificationDocument;
import net.minidev.json.JSONObject;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;

public class Multipart {

    List multipartList;

    public List getMultipartList() {
        return multipartList;
    }

    public void setMultipartList(List multipartList) {
        this.multipartList = multipartList;
    }

    public void add(MultipartData multipartData) {
        if (multipartList == null) {
            multipartList = new ArrayList();
        }
        multipartList.add(multipartData);
    }

    public static class MultipartData {
        private final String contentType; //json, img
        private final Map entity; //name, content
        private final String contentDisposition;

        MultipartData(String contentType, String contentDisposition, Map entity){
            this.contentType = contentType;
            this.contentDisposition = contentDisposition;
            this.entity = entity;
        }
        public String getContentType() {
            return contentType;
        }

        public String getContentDisposition() {
            return contentDisposition;
        }

        public Map getEntity() {
            return entity;
        }

    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy