(int responseCode)
| 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 | } |
no test coverage detected