Back to project page Java-Yandex.Money-API-SDK.
The source code is released under:
MIT License
If you think the Android project Java-Yandex.Money-API-SDK 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 ru.yandex.money.api.response; /*from www . j a v a 2 s. c o m*/ import java.io.Serializable; /** * <p>??????? ???? ???????? ?????????? ?????? receiveOAuthToken</p> * <b>????????</b>: ??? ??????????? ?????????? ???????? ???? ?????, ????? error ? * status (????? ??????? ??????????????), ????? null * @author dvmelnikov */ public class ReceiveOAuthTokenResponse implements Serializable { private static final long serialVersionUID = -6557808563221514650L; private String error; private String accessToken; private ReceiveOAuthTokenResponse() { } /** * ????? ?????????? ?? ??????? ??? ?????? ? ?????????? ???????? * @return ???? ??????? ??????????? ???????? */ public Boolean isSuccess() { return error == null; } /** * @return ??? ??????. ?????????????? ? ??????? ??????. * ????????? ?????????: * <ul> * <li>invalid_request ????????????? ????????? ???????? ????????????? * ??? ????? ???????????? ??? ????????????? ?????????</li> * <li>unauthorized_client ????????? ???????? ????????? client_id, ???? * ?????????? ?? ????? ????? ??????????? ???????????</li> * <li>(????????, ??? client_id ???????????? ?????????? * "???????.??????")</li> * <li>access_denied ? ?????? access_token ????????. ????????? ????? * ?? ??????????? ??????????, ???? ??????????, ???? ?? ?????? * ?????????? ?????? ??? ????? access_token (????????? * ??????? ?????? ??????????? ?? ??? ?? ????????? ???????)</li> * </ul> */ public String getError() { return error; } /** * @return ????? ????????????? */ public String getAccessToken() { return accessToken; } @Override public String toString() { return "ReceiveOAuthTokenResponse{" + "error='" + error + '\'' + ", accessToken='" + partOfToken() + '\'' + '}'; } private String partOfToken() { if (accessToken == null) { return null; } return accessToken.substring(0, 4) + "..." + accessToken.substring(accessToken.length() - 5); } }