本文整理汇总了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);
}
示例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());
}
}
示例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();
}
}
示例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();
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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();
}
}