当前位置: 首页>>代码示例>>Java>>正文


Java AndroidAppDeliveryData类代码示例

本文整理汇总了Java中com.akdeniz.googleplaycrawler.GooglePlay.AndroidAppDeliveryData的典型用法代码示例。如果您正苦于以下问题:Java AndroidAppDeliveryData类的具体用法?Java AndroidAppDeliveryData怎么用?Java AndroidAppDeliveryData使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


AndroidAppDeliveryData类属于com.akdeniz.googleplaycrawler.GooglePlay包,在下文中一共展示了AndroidAppDeliveryData类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: delivery

import com.akdeniz.googleplaycrawler.GooglePlay.AndroidAppDeliveryData; //导入依赖的package包/类
public DownloadData delivery(String packageName, int versionCode, int offerType)
		throws IOException {
	ResponseWrapper responseWrapper = executeGETRequest(DELIVERY_URL, new String[][] {
			{ "ot", String.valueOf(offerType) },
			{ "doc", packageName },
			{ "vc", String.valueOf(versionCode) }, });

	AndroidAppDeliveryData appDeliveryData = responseWrapper.getPayload().getDeliveryResponse()
			.getAppDeliveryData();
	return new DownloadData(this, appDeliveryData);
}
 
开发者ID:onyxbits,项目名称:dummydroid,代码行数:12,代码来源:GooglePlayAPI.java

示例2: purchaseAndDeliver

import com.akdeniz.googleplaycrawler.GooglePlay.AndroidAppDeliveryData; //导入依赖的package包/类
public DownloadData purchaseAndDeliver(String packageName, int versionCode, int offerType) throws IOException {
	BuyResponse buyResponse = purchase(packageName, versionCode, offerType);
	AndroidAppDeliveryData ada = buyResponse.getPurchaseStatusResponse().getAppDeliveryData();
	if (ada.hasDownloadUrl() && ada.getDownloadAuthCookieCount()>0) {
		// This is for backwards compatibility.
		return new DownloadData(this, ada);
	}
	return delivery(packageName, versionCode, offerType);
}
 
开发者ID:onyxbits,项目名称:raccoon4,代码行数:10,代码来源:GooglePlayAPI.java

示例3: DownloadData

import com.akdeniz.googleplaycrawler.GooglePlay.AndroidAppDeliveryData; //导入依赖的package包/类
public DownloadData(GooglePlayAPI api, AndroidAppDeliveryData appDeliveryData) {
	this.appDeliveryData = appDeliveryData;
	this.api = api;
	this.downloadUrl = appDeliveryData.getDownloadUrl();
	this.downloadAuthCookie = appDeliveryData.getDownloadAuthCookie(0);
	this.totalSize = appDeliveryData.getDownloadSize();
	for (int i = 0; i < appDeliveryData.getAdditionalFileCount(); i++) {
		totalSize += appDeliveryData.getAdditionalFile(i).getSize();
	}
}
 
开发者ID:onyxbits,项目名称:raccoon4,代码行数:11,代码来源:DownloadData.java

示例4: DownloadData

import com.akdeniz.googleplaycrawler.GooglePlay.AndroidAppDeliveryData; //导入依赖的package包/类
public DownloadData(GooglePlayAPI api, AndroidAppDeliveryData appDeliveryData) {
	this.appDeliveryData = appDeliveryData;
	this.api = api;
	this.downloadUrl = appDeliveryData.getDownloadUrl();
	this.downloadAuthCookie = appDeliveryData.getDownloadAuthCookie(0);
}
 
开发者ID:onyxbits,项目名称:dummydroid,代码行数:7,代码来源:DownloadData.java


注:本文中的com.akdeniz.googleplaycrawler.GooglePlay.AndroidAppDeliveryData类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。