本文整理汇总了Java中com.amazon.device.iap.model.UserDataResponse类的典型用法代码示例。如果您正苦于以下问题:Java UserDataResponse类的具体用法?Java UserDataResponse怎么用?Java UserDataResponse使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
UserDataResponse类属于com.amazon.device.iap.model包,在下文中一共展示了UserDataResponse类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: onUserDataResponse
import com.amazon.device.iap.model.UserDataResponse; //导入依赖的package包/类
@Override
public void onUserDataResponse(@NonNull final UserDataResponse userDataResponse) {
OPFLog.logMethod(userDataResponse);
final SyncedReference<UserData> syncUserData = this.syncUserData;
if (syncUserData == null) {
return;
}
switch (userDataResponse.getRequestStatus()) {
case SUCCESSFUL:
syncUserData.set(userDataResponse.getUserData());
break;
case FAILED:
case NOT_SUPPORTED:
OPFLog.e("UserData request failed: %s", userDataResponse);
break;
}
}
开发者ID:onepf,项目名称:OPFIab,代码行数:18,代码来源:AmazonBillingHelper.java
示例2: onUserDataResponse
import com.amazon.device.iap.model.UserDataResponse; //导入依赖的package包/类
/**
* This is the callback for {@link PurchasingService#getUserData}. For
* successful case, get the current user from {@link UserDataResponse} and
* call {@link SampleIAPManager#setAmazonUserId} method to load the Amazon
* user and related purchase information
*
* @param response
*/
@Override
public void onUserDataResponse(final UserDataResponse response) {
final UserDataResponse.RequestStatus status = response.getRequestStatus();
showMessage(LOGTYPELOG, "onGetUserDataResponse: requestId (" + response.getRequestId()
+ ") userIdRequestStatus: "
+ status
+ ")");
switch (status) {
case SUCCESSFUL:
UserData userData = response.getUserData();
showMessage(LOGTYPELOG, "onUserDataResponse: get user id (" + userData.getUserId()
+ "), marketplace ("
+ userData.getMarketplace()
+ ") ");
updateUserData(userData);
break;
case FAILED:
case NOT_SUPPORTED:
showMessage(LOGTYPEERROR, "onUserDataResponse failed, status code is " + status);
updateUserData(null);
break;
}
}
开发者ID:libgdx,项目名称:gdx-pay,代码行数:36,代码来源:PurchaseManagerAndroidAmazon.java
示例3: onUserDataResponse
import com.amazon.device.iap.model.UserDataResponse; //导入依赖的package包/类
@Override
public void onUserDataResponse(UserDataResponse userDataResponse) {
if (userDataResponse.getRequestStatus() == UserDataResponse.RequestStatus.SUCCESSFUL) {
mCurrentUserData = userDataResponse.getUserData();
AmazonIabHelper.this.setupSuccess();
} else {
String msg = "Unable to get userId";
SoomlaUtils.LogError(TAG, msg);
IabResult result = new IabResult(IabResult.BILLING_RESPONSE_RESULT_ERROR, msg);
AmazonIabHelper.this.setupFailed(result);
}
}
开发者ID:soomla,项目名称:android-store-amazon,代码行数:13,代码来源:AmazonIabHelper.java
示例4: onUserDataResponse
import com.amazon.device.iap.model.UserDataResponse; //导入依赖的package包/类
@Override
public void onUserDataResponse(UserDataResponse userDataResponse) {
logDebug("onUserDataResponse " + userDataResponse.getRequestStatus());
}
开发者ID:eggheadgames,项目名称:android-in-app-payments,代码行数:5,代码来源:AmazonBillingListener.java
示例5: onUserDataResponse
import com.amazon.device.iap.model.UserDataResponse; //导入依赖的package包/类
@Override
public void onUserDataResponse(UserDataResponse userDataResponse) {
}
开发者ID:ludei,项目名称:atomic-plugins-inapps,代码行数:5,代码来源:AmazonInAppService.java
注:本文中的com.amazon.device.iap.model.UserDataResponse类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论