source: ether_megapoli/web/src/json/serializers/PlateformJsonSerializer.java @ 89

Last change on this file since 89 was 89, checked in by vmipsl, 13 years ago

Import du projet MEGAPOLI

File size: 553 bytes
Line 
1package json.serializers;
2
3import com.medias.database.objects.Plateforme;
4import net.sf.json.JSONObject;
5import net.sf.json.JsonConfig;
6
7public class PlateformJsonSerializer extends AbstractJsonSerializer<Plateforme>
8{
9    public JSONObject process( final Plateforme plateform, final JsonConfig jsonConfig )
10    {
11        final JSONObject result = new JSONObject();
12
13        serialize( result, "id", plateform.getPlateformeId(), jsonConfig );
14        serialize( result, "name", plateform.getPlateformeNom(), jsonConfig );
15
16        return result;
17    }
18}
Note: See TracBrowser for help on using the repository browser.