package be.cytomine.client.abst;
import be.cytomine.client.*;
import java.util.*;
import org.json.simple.*;
import org.json.simple.JSONObject;
/**
* Response for project sharing the same image (list)
*
* @author ClientBuilder (Loïc Rollus)
* @version 0.1
*
* DO NOT EDIT THIS FILE. THIS IS CODE IS BUILD AUTOMATICALY. ALL CHANGE WILL BE LOST AFTER NEXT GENERATION.
*
* IF YOU WANT TO EDIT A DOMAIN FILE (change method, add property,...), JUST EDIT THE CHILD FILE “YourDomain.java” instead of this file “AbstractYourDomain.java”. I WON'T BE CLEAR IF IT ALREADY EXIST.
*
*/
public abstract class AbstractProjectSharingSameImage
extends AbstractDomain
{
/**
* User is admin or not
*
*/
protected Boolean admin;
/**
* Image id
*
*/
protected Long imageinstanceId;
/**
* User id
*
*/
protected Long layerId;
/**
* User name
*
*/
protected Long layerName;
/**
* Project id
*
*/
protected Long projectId;
/**
* Project name
*
*/
protected Long projectName;
public void build()
throws Exception
{
}
public void build(JSONObject json)
throws Exception
{
this.admin =JSONUtils.extractJSONBoolean(json.get("admin"));
this.imageinstanceId =JSONUtils.extractJSONLong(json.get("imageinstanceId"));
this.layerId =JSONUtils.extractJSONLong(json.get("layerId"));
this.layerName =JSONUtils.extractJSONLong(json.get("layerName"));
this.projectId =JSONUtils.extractJSONLong(json.get("projectId"));
this.projectName =JSONUtils.extractJSONLong(json.get("projectName"));
}
public JSONObject toJSON()
throws Exception
{
JSONObject json=new JSONObject();
return json;
}
}