Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public void onResponse(String response) {
- Log.d("success", response);
- Toast.makeText(SystemActivity.this, "succesful!, Toast.LENGTH_SHORT).show();
- }
- }, new Response.ErrorListener() {
- @Override
- public void onErrorResponse(VolleyError error) {
- Log.d("error", error.toString());
- }
- });
- getparams();
- mQueue.add(stringRequest);
- //put-volley
- }
- //put-volley
- protected Map<String, String> getparams() {
- Map<String, String> params = new HashMap<String, String>();
- params.put("NotesID", corusername); //NotesID
- params.put("Password", renewpass);
- return params;
- }
- //put-volley
- if (entity == null)
- {
- return Request.CreateErrorResponse(HttpStatusCode.NotFound, "customers with userid = " + userID + "is not found");
- }
- else
- {
- entity.NotesID = account.NotesID;
- entity.Password = account.Password;
- entities.SaveChanges();
- return Request.CreateResponse(HttpStatusCode.OK, entity);
- }
- }
- }
- catch (Exception ex)
- {
- return Request.CreateErrorResponse(HttpStatusCode.BadRequest, ex);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement