本文整理汇总了Java中com.vk.sdk.api.VKParser类的典型用法代码示例。如果您正苦于以下问题:Java VKParser类的具体用法?Java VKParser怎么用?Java VKParser使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
VKParser类属于com.vk.sdk.api包,在下文中一共展示了VKParser类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: get
import com.vk.sdk.api.VKParser; //导入依赖的package包/类
/**
* https://vk.com/dev/messages.get
*
* @param params use parameters from description with VKApiConst class
* @return Request for load
*/
public VKRequest get(VKParameters params) {
return prepareRequest("get", params, new VKParser() {
@Override
public Object createModel(JSONObject object) {
return new VKApiGetMessagesResponse(object);
}
});
}
开发者ID:DESTROYED,项目名称:The_busy_calendar,代码行数:15,代码来源:VKApiMessages.java
示例2: getDialogs
import com.vk.sdk.api.VKParser; //导入依赖的package包/类
/**
* https://vk.com/dev/messages.getDialogs
*
* @param params use parameters from description with VKApiConst class
* @return Request for load
*/
public VKRequest getDialogs(VKParameters params) {
return prepareRequest("getDialogs", params, new VKParser() {
@Override
public Object createModel(JSONObject object) {
return new VKApiGetDialogResponse(object);
}
});
}
开发者ID:DESTROYED,项目名称:The_busy_calendar,代码行数:15,代码来源:VKApiMessages.java
示例3: get
import com.vk.sdk.api.VKParser; //导入依赖的package包/类
/**
* https://vk.com/dev/users.get
*
* @param params use parameters from description with VKApiConst class
* @return Request for load
*/
public VKRequest get(VKParameters params) {
return prepareRequest("get", params, new VKParser() {
@Override
public Object createModel(JSONObject object) {
return new VKList<>(object, VKApiUserFull.class);
}
});
}
开发者ID:DESTROYED,项目名称:The_busy_calendar,代码行数:15,代码来源:VKApiUsers.java
示例4: get
import com.vk.sdk.api.VKParser; //导入依赖的package包/类
public VKRequest get(@Nullable VKParameters params) {
return prepareRequest("get", params, new VKParser() {
@Override
public Object createModel(JSONObject object) {
try {
return new VKApiFeedPage().parse(object);
} catch (JSONException e) {
return null;
}
}
});
}
开发者ID:yeputons,项目名称:ofeed,代码行数:13,代码来源:VKApiFeed.java
示例5: prepareRequest
import com.vk.sdk.api.VKParser; //导入依赖的package包/类
VKRequest prepareRequest(String methodName, VKParameters methodParameters,
VKRequest.HttpMethod httpMethod,
VKParser responseParser) {
VKRequest result = new VKRequest(String.format(Locale.US, "%s.%s", mMethodGroup, methodName),
methodParameters, httpMethod);
result.setResponseParser(responseParser);
return result;
}
开发者ID:DementorAl,项目名称:VkAdmin,代码行数:9,代码来源:VKApiBase.java
示例6: get
import com.vk.sdk.api.VKParser; //导入依赖的package包/类
/**
* https://vk.com/dev/users.get
*
* @param params use parameters from description with VKApiConst class
* @return Request for load
*/
public VKRequest get(VKParameters params) {
return prepareRequest("get", params, VKRequest.HttpMethod.GET, new VKParser() {
@Override
public Object createModel(JSONObject object) {
return new VKList<VKApiUserFull>(object, VKApiUserFull.class);
}
});
}
开发者ID:DementorAl,项目名称:VkAdmin,代码行数:15,代码来源:VKApiUsers.java
示例7: get
import com.vk.sdk.api.VKParser; //导入依赖的package包/类
/**
* https://vk.com/dev/users.get
*
* @param params use parameters from description with VKApiConst class
* @return Request for load
*/
public VKRequest get(VKParameters params) {
return prepareRequest("get", params, VKRequest.HttpMethod.GET, new VKParser() {
@Override
public Object createModel(JSONObject object) {
return new VKList<VKApiUser>(object, VKApiUser.class);
}
});
}
开发者ID:LizaAlert-HotLine,项目名称:AndroidMobileWorkplace,代码行数:15,代码来源:VKApiUsers.java
示例8: prepareRequest
import com.vk.sdk.api.VKParser; //导入依赖的package包/类
protected VKRequest prepareRequest(String methodName, VKParameters methodParameters,
VKParser responseParser) {
VKRequest result = new VKRequest(String.format(Locale.US, "%s.%s", getMethodsGroup(), methodName), methodParameters);
result.setResponseParser(responseParser);
return result;
}
开发者ID:DESTROYED,项目名称:The_busy_calendar,代码行数:7,代码来源:VKApiBase.java
示例9: VKModelOperation
import com.vk.sdk.api.VKParser; //导入依赖的package包/类
/**
* Create new model operation
*
* @param uriRequest Prepared request
* @param parser Parser for create response
*/
public VKModelOperation(VKHttpClient.VKHTTPRequest uriRequest, VKParser parser) {
super(uriRequest);
mParser = parser;
}
开发者ID:DESTROYED,项目名称:The_busy_calendar,代码行数:11,代码来源:VKModelOperation.java
示例10: VKModelOperation
import com.vk.sdk.api.VKParser; //导入依赖的package包/类
/**
* Create new model operation
* @param uriRequest Prepared request
* @param parser Parser for create response
*/
public VKModelOperation(HttpUriRequest uriRequest, VKParser parser) {
super(uriRequest);
mParser = parser;
}
开发者ID:DementorAl,项目名称:VkAdmin,代码行数:10,代码来源:VKModelOperation.java
注:本文中的com.vk.sdk.api.VKParser类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论