static class API.Put
extends java.lang.Object
Constructor and Description |
---|
Put() |
Modifier and Type | Method and Description |
---|---|
(package private) static void |
event(RequestQueue queue,
com.culturemesh.android.models.Event event,
android.content.SharedPreferences settings,
<any> listener)
PUT to the server a request, via
/event/new , to update an
Event . |
private static void |
model(RequestQueue queue,
com.culturemesh.android.models.Putable toPut,
java.lang.String url,
java.lang.String logTag,
android.content.SharedPreferences settings,
<any> listener)
PUT to the server a request to make changes to a
Putable model. |
(package private) static void |
post(RequestQueue queue,
com.culturemesh.android.models.Post post,
android.content.SharedPreferences settings,
<any> listener)
PUT to the server, via
/user/users , a request to make changes a
Post . |
(package private) static void |
reply(RequestQueue queue,
com.culturemesh.android.models.PostReply comment,
android.content.SharedPreferences settings,
<any> listener)
PUT to the server a request, via
/post/{postId}/reply , to update a
PostReply . |
(package private) static void |
user(RequestQueue queue,
com.culturemesh.android.models.User user,
java.lang.String email,
android.content.SharedPreferences settings,
<any> listener)
PUT to the server, via
/user/users , a request to make changes a User . |
static void user(RequestQueue queue, com.culturemesh.android.models.User user, java.lang.String email, android.content.SharedPreferences settings, <any> listener)
/user/users
, a request to make changes a User
.
Success or failure status will be passed via a NetworkResponse
to the
listener.queue
- Queue to which the asynchronous task will be addeduser
- Updated version of the user to changeemail
- User's email addresslistener
- Listener whose onResponse method will be called when task completesstatic void event(RequestQueue queue, com.culturemesh.android.models.Event event, android.content.SharedPreferences settings, <any> listener)
/event/new
, to update an
Event
. Success or failure status will be
passed via a NetworkResponse
to the listener.queue
- Queue to which the asynchronous task will be addedevent
- Updated version of the Event
to changelistener
- Listener whose onResponse method will be called when task completesstatic void post(RequestQueue queue, com.culturemesh.android.models.Post post, android.content.SharedPreferences settings, <any> listener)
/user/users
, a request to make changes a
Post
.
Success or failure status will be passed via a NetworkResponse
to the
listener.queue
- Queue to which the asynchronous task will be addedpost
- Updated version of the post to changelistener
- Listener whose onResponse method will be called when task completesstatic void reply(RequestQueue queue, com.culturemesh.android.models.PostReply comment, android.content.SharedPreferences settings, <any> listener)
/post/{postId}/reply
, to update a
PostReply
. Success or failure status will be
passed via a NetworkResponse
to the listener.queue
- Queue to which the asynchronous task will be addedcomment
- Updated version of the PostReply
to make changes tolistener
- Listener whose onResponse method will be called when task completesprivate static void model(RequestQueue queue, com.culturemesh.android.models.Putable toPut, java.lang.String url, java.lang.String logTag, android.content.SharedPreferences settings, <any> listener)
Putable
model. Success
or failure status will be passed via a NetworkResponse
to the listener.queue
- Queue to which the asynchronous task will be addedtoPut
- Updated version of the model to changeurl
- Full URL to send the POST request tologTag
- Tag (no more than 23 characters long) to be added to log entrieslistener
- Listener whose onResponse method will be called when task completes