Line | |
---|
1 | package json.serializers; |
---|
2 | |
---|
3 | import com.medias.database.objects.Plateforme; |
---|
4 | import net.sf.json.JSONObject; |
---|
5 | import net.sf.json.JsonConfig; |
---|
6 | |
---|
7 | public 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.