Back to project page innovativeproject-meetingdataexchange.
The source code is released under:
MIT License
If you think the Android project innovativeproject-meetingdataexchange 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 serverCommunicator; /* w w w.ja v a2 s . co m*/ import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import com.TrololoCompany.meetingdataexchangedataBase.CommentEntity; import com.TrololoCompany.meetingdataexchangedataBase.FileEntity; import com.TrololoCompany.meetingdataexchangedataBase.MeetingEntity; public class CommentsHelper { public CommentEntity makeComment(JSONObject json,FileEntity file) throws JSONException { CommentEntity comment= new CommentEntity(); comment.setServerCommentID(json.getLong("commentid")); comment.setAuthorName(json.getString("author")); comment.setAddTime(json.getString("addtime")); comment.setContent(json.getString("content")); comment.setFileID(file.getID()); return comment; } }