Back to project page ReadabilitySDK.
The source code is released under:
MIT License
If you think the Android project ReadabilitySDK 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.idemidov.readability.parser; // w ww . j ava 2 s. c om import com.idemidov.readability.data.CommandResponse; import com.idemidov.readability.data.Tag; import com.idemidov.readability.util.ResultCode; import org.json.JSONException; import org.json.JSONObject; /** * Created by Ilya on 01/03/14. */ public class GetTagByIdParser implements Parser<Tag> { @Override public CommandResponse<Tag> parse(String response) throws JSONException { CommandResponse<Tag> result = new CommandResponse<Tag>(); result.setData(GetTagsParser.parseTag(new JSONObject(response))); result.setCode(ResultCode.CODE_OK); return result; } }