Back to project page ExampleApp.
The source code is released under:
Copyright (c) 2014, Altinn All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redis...
If you think the Android project ExampleApp listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.altinn.apps.fisher.net.jsobj; /**/*from w w w. j a va2 s.c o m*/ * This is parent interface for all kind of supported JsonObj (eg FormObj, MessageObj etc) * This class can create JsonObj from JSONObject * JsonObj has fields and list of JsonObj's which can be directly used there is no need to iterate JSONObject again and again * JsonObj class has capability to create JSONObject from their existing fields. * */ import org.json.JSONObject; public interface JsonObj { /** * From JSONObject this method construct JsonObj * @param JSONObject * @return JsonObj */ JsonObj parse(JSONObject jsonObj); /** * From this method fields of this JsonObj(Implementer's) can convert into JSONObject, * which can be used in network transaction. * @return */ JSONObject createJson(); }