Skip to content

Commit

Permalink
Fix: API doc changed
Browse files Browse the repository at this point in the history
restrictedFor -> feeRequired
  • Loading branch information
709924470 committed Nov 15, 2022
1 parent ed2e036 commit 343e362
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ object FanboxParser {
val items: MutableList<DetailItem> = ArrayList()
val req = getJSON(url)
val body = req!!.getJSONObject("body")
if (body.getString("restrictedFor") != "null") {
if (body.getString("feeRequired") != "null") {
items.add(
DetailItem(
DetailItem.Type.TEXT,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public List<DetailItem> getPostContent(String id) throws Exception{
public List<DetailItem> getPostContent(JSONObject body) throws Exception{
List<DetailItem> items = new ArrayList<>();

if(!body.getString("restrictedFor").equals("null")){
if(!body.getString("feeRequired").equals("null")){
items.add(new DetailItem(DetailItem.Type.TEXT,
String.format(c.getString(R.string.plan_formatting), body.getInt("feeRequired"))));
items.add(new DetailItem(DetailItem.Type.IMAGE, "false"));
Expand Down

0 comments on commit 343e362

Please # to comment.