Class ServiceClassifieds
java.lang.Object
org.silverpeas.mobile.shared.services.rest.AbstractService
org.silverpeas.mobile.shared.services.rest.ServiceClassifieds
Service to manage requests related to classifieds.
- Author:
- svu
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgetClassified(String appId, String id, RestCallback<ClassifiedsDTO> callback) Retrieves a specific classified by its ID.voidgetClassifieds(String appId, RestCallback<ClassifiedsDTO> callback) Retrieves all classifieds for a given application.voidsendMessageToOwner(String appId, String message, ClassifiedDTO classifiedDTO, RestCallback<Void> callback) Sends a message to the owner of a classified.Methods inherited from class org.silverpeas.mobile.shared.services.rest.AbstractService
asBoolean, delete, encode, escapeJson, get, getText, initContext, mapArray, post, put, request, request, requestJson, requestText, toJsonArray
-
Constructor Details
-
ServiceClassifieds
public ServiceClassifieds()
-
-
Method Details
-
getClassified
Retrieves a specific classified by its ID.- Parameters:
appId- The ID of the application.id- The ID of the classified.callback- The callback to handle the response (ClassifiedsDTO).
-
getClassifieds
Retrieves all classifieds for a given application.- Parameters:
appId- The ID of the application.callback- The callback to handle the response (ClassifiedsDTO).
-