Пример #1
0
 protected final URLFactory.Builder newDetailResourceURL(int resourceId) {
   return mUrlfactory
       .newURL()
       .setResource(mResourceType.getSingularName(), mResourceType.getId(), resourceId);
 }
Пример #2
0
 protected final URLFactory.Builder newListResourceURL() {
   return mUrlfactory.newURL().setResource(mResourceType.getPluralName());
 }
Пример #3
0
 @NotNull
 List<T> itemListFromJson(@NotNull JSONArray json) {
   throw new UnsupportedOperationException(
       mResourceType.getPluralName() + " API does not support this operation");
 }