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; /*www . j a v a 2 s . c o m*/ import com.android.volley.NetworkResponse; import com.android.volley.Response; import com.cloudmine.api.rest.response.CMSocialLoginResponse; /** * <br>Copyright CloudMine LLC. All rights reserved * <br> See LICENSE file included with SDK for details. */ public class CompleteSocialLoginRequest extends CloudMineRequest<CMSocialLoginResponse>{ public static final int REQUEST_TYPE = 422; private static final String BASE_URL = "/account/social/login/status/"; public CompleteSocialLoginRequest(String challenge, Response.Listener<CMSocialLoginResponse> successListener, Response.ErrorListener errorListener) { super(Method.GET, BASE_URL + challenge, null, null, successListener, errorListener); } @Override protected Response<CMSocialLoginResponse> parseNetworkResponse(NetworkResponse networkResponse) { return Response.success(new CMSocialLoginResponse(new String(networkResponse.data), networkResponse.statusCode), getCacheEntry(networkResponse)); } @Override public int getRequestType() { return REQUEST_TYPE; } }