Back to project page cloudmine-android.
The source code is released under:
Copyright (c) 2012 CloudMine LLC, http://cloudmine.me Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software")...
If you think the Android project cloudmine-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.cloudmine.api.rest; /*from w ww . ja va 2 s .c om*/ import com.android.volley.NetworkResponse; import com.android.volley.Response; import com.cloudmine.api.rest.options.CMServerFunction; import com.cloudmine.api.rest.response.CMResponse; import me.cloudmine.annotations.Expand; import me.cloudmine.annotations.Optional; /** * <br>Copyright CloudMine LLC. All rights reserved * <br> See LICENSE file included with SDK for details. */ public class BaseResetPasswordRequest extends CloudMineRequest<CMResponse> { public static final int REQUEST_TYPE = 423; private static final CMURLBuilder BASE_URL = new CMURLBuilder("/account/password/reset", true); @Expand public BaseResetPasswordRequest(String email, @Optional CMServerFunction serverFunction, @Optional Response.Listener<CMResponse> successListener, @Optional Response.ErrorListener errorListener) { super(Method.POST, BASE_URL, JsonUtilities.getIdentifierBody(email, null), serverFunction, successListener, errorListener); } @Override protected Response<CMResponse> parseNetworkResponse(NetworkResponse networkResponse) { return Response.success(new CMResponse(new String(networkResponse.data), networkResponse.statusCode), getCacheEntry()); } @Override public int getRequestType() { return REQUEST_TYPE; } }