// Path: src/main/java/com/gengo/client/exceptions/GengoException.java
// @SuppressWarnings("serial")
// /**
//  * Encapsulates all exceptions thrown by the API 
//  */
// public class GengoException extends Exception
// {
// 	public GengoException(String e)
// 	{
// 		super(e);
// 	}
// 	
// 	public GengoException(String msg, Throwable cause)
// 	{
// 		super(msg, cause);
// 	}
// 	
// }


import org.json.JSONObject;
import org.json.JSONException;
import com.gengo.client.exceptions.GengoException;
package com.gengo.client.payloads;




public class Attachment extends Payload
{
    private JSONObject data;

    private static final String URL = "url";
    private static final String FILENAME = "filename";
    private static final String MIMETYPE = "mime_type";

    /**
     * @param url full URL to a resource i.e. http://example.com/image.jpg
     * @param filename name of the file i.e. image.jpg
     * @param mimeType mime Type of the resource i.e. image/jpg
     * @throws GengoException
     */
    public Attachment(String url, String filename, String mimeType)
// Path: src/main/java/com/gengo/client/exceptions/GengoException.java
// @SuppressWarnings("serial")
// /**
//  * Encapsulates all exceptions thrown by the API 
//  */
// public class GengoException extends Exception
// {
// 	public GengoException(String e)
// 	{
// 		super(e);
// 	}
// 	
// 	public GengoException(String msg, Throwable cause)
// 	{
// 		super(msg, cause);
// 	}
// 	
// }


// Path: src/main/java/com/gengo/client/payloads/Attachment.java
import org.json.JSONObject;
import org.json.JSONException;
import com.gengo.client.exceptions.GengoException;

package com.gengo.client.payloads;




public class Attachment extends Payload
{
    private JSONObject data;

    private static final String URL = "url";
    private static final String FILENAME = "filename";
    private static final String MIMETYPE = "mime_type";

    /**
     * @param url full URL to a resource i.e. http://example.com/image.jpg
     * @param filename name of the file i.e. image.jpg
     * @param mimeType mime Type of the resource i.e. image/jpg
     * @throws GengoException
     */
    public Attachment(String url, String filename, String mimeType)
        throws GengoException