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


Java Request.getClientKey方法代码示例

本文整理汇总了Java中com.google.ipc.invalidation.external.client.android.service.Request.getClientKey方法的典型用法代码示例。如果您正苦于以下问题:Java Request.getClientKey方法的具体用法?Java Request.getClientKey怎么用?Java Request.getClientKey使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.google.ipc.invalidation.external.client.android.service.Request的用法示例。


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

示例1: create

import com.google.ipc.invalidation.external.client.android.service.Request; //导入方法依赖的package包/类
@Override
protected void create(Request request, Response.Builder response) {
  String clientKey = request.getClientKey();
  int clientType = request.getClientType();
  Account account = request.getAccount();
  String authType = request.getAuthType();
  Intent eventIntent = request.getIntent();
  clientManager.create(clientKey, clientType, account, authType, eventIntent);
  response.setStatus(Status.SUCCESS);
}
 
开发者ID:morristech,项目名称:android-chromium,代码行数:11,代码来源:AndroidInvalidationService.java

示例2: resume

import com.google.ipc.invalidation.external.client.android.service.Request; //导入方法依赖的package包/类
@Override
protected void resume(Request request, Response.Builder response) {
  String clientKey = request.getClientKey();
  AndroidClientProxy client = clientManager.get(clientKey);
  if (setResponseStatus(client, request, response)) {
    response.setAccount(client.getAccount());
    response.setAuthType(client.getAuthType());
  }
}
 
开发者ID:morristech,项目名称:android-chromium,代码行数:10,代码来源:AndroidInvalidationService.java

示例3: start

import com.google.ipc.invalidation.external.client.android.service.Request; //导入方法依赖的package包/类
@Override
protected void start(Request request, Response.Builder response) {
  String clientKey = request.getClientKey();
  AndroidInvalidationClient client = clientManager.get(clientKey);
  if (setResponseStatus(client, request, response)) {
    client.start();
  }
}
 
开发者ID:morristech,项目名称:android-chromium,代码行数:9,代码来源:AndroidInvalidationService.java

示例4: stop

import com.google.ipc.invalidation.external.client.android.service.Request; //导入方法依赖的package包/类
@Override
protected void stop(Request request, Response.Builder response) {
  String clientKey = request.getClientKey();
  AndroidInvalidationClient client = clientManager.get(clientKey);
  if (setResponseStatus(client, request, response)) {
    client.stop();
  }
}
 
开发者ID:morristech,项目名称:android-chromium,代码行数:9,代码来源:AndroidInvalidationService.java

示例5: register

import com.google.ipc.invalidation.external.client.android.service.Request; //导入方法依赖的package包/类
@Override
protected void register(Request request, Response.Builder response) {
  String clientKey = request.getClientKey();
  AndroidInvalidationClient client = clientManager.get(clientKey);
  if (setResponseStatus(client, request, response)) {
    ObjectId objectId = request.getObjectId();
    client.register(objectId);
  }
}
 
开发者ID:morristech,项目名称:android-chromium,代码行数:10,代码来源:AndroidInvalidationService.java

示例6: unregister

import com.google.ipc.invalidation.external.client.android.service.Request; //导入方法依赖的package包/类
@Override
protected void unregister(Request request, Response.Builder response) {
  String clientKey = request.getClientKey();
  AndroidInvalidationClient client = clientManager.get(clientKey);
  if (setResponseStatus(client, request, response)) {
    ObjectId objectId = request.getObjectId();
    client.unregister(objectId);
  }
}
 
开发者ID:morristech,项目名称:android-chromium,代码行数:10,代码来源:AndroidInvalidationService.java

示例7: acknowledge

import com.google.ipc.invalidation.external.client.android.service.Request; //导入方法依赖的package包/类
@Override
protected void acknowledge(Request request, Response.Builder response) {
  String clientKey = request.getClientKey();
  AckHandle ackHandle = request.getAckHandle();
  AndroidInvalidationClient client = clientManager.get(clientKey);
  if (setResponseStatus(client, request, response)) {
    client.acknowledge(ackHandle);
  }
}
 
开发者ID:morristech,项目名称:android-chromium,代码行数:10,代码来源:AndroidInvalidationService.java

示例8: destroy

import com.google.ipc.invalidation.external.client.android.service.Request; //导入方法依赖的package包/类
@Override
protected void destroy(Request request, Response.Builder response) {
  String clientKey = request.getClientKey();
  AndroidInvalidationClient client = clientManager.get(clientKey);
  if (setResponseStatus(client, request, response)) {
    client.destroy();
  }
}
 
开发者ID:morristech,项目名称:android-chromium,代码行数:9,代码来源:AndroidInvalidationService.java


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