MCPcopy Index your code
hub / github.com/M66B/NetGuard / getResult

Method getResult

app/src/main/java/eu/faircode/netguard/IAB.java:216–239  ·  view source on GitHub ↗
(int responseCode)

Source from the content-addressed store, hash-verified

214 }
215
216 public static String getResult(int responseCode) {
217 switch (responseCode) {
218 case 0:
219 return "OK";
220 case 1:
221 return "USER_CANCELED";
222 case 2:
223 return "SERVICE_UNAVAILABLE";
224 case 3:
225 return "BILLING_UNAVAILABLE";
226 case 4:
227 return "ITEM_UNAVAILABLE";
228 case 5:
229 return "DEVELOPER_ERROR";
230 case 6:
231 return "ERROR";
232 case 7:
233 return "ITEM_ALREADY_OWNED";
234 case 8:
235 return "ITEM_NOT_OWNED";
236 default:
237 return Integer.toString(responseCode);
238 }
239 }
240}

Callers 3

isAvailableMethod · 0.95
getPurchasesMethod · 0.95
getBuyIntentMethod · 0.95

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected