本文整理汇总了Java中org.whispersystems.textsecure.internal.push.StaleDevices类的典型用法代码示例。如果您正苦于以下问题:Java StaleDevices类的具体用法?Java StaleDevices怎么用?Java StaleDevices使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
StaleDevices类属于org.whispersystems.textsecure.internal.push包,在下文中一共展示了StaleDevices类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: handleStaleDevices
import org.whispersystems.textsecure.internal.push.StaleDevices; //导入依赖的package包/类
private void handleStaleDevices(PushAddress recipient, StaleDevices staleDevices) {
long recipientId = recipient.getRecipientId();
for (int staleDeviceId : staleDevices.getStaleDevices()) {
store.deleteSession(recipientId, staleDeviceId);
}
}
示例2: handleStaleDevices
import org.whispersystems.textsecure.internal.push.StaleDevices; //导入依赖的package包/类
private void handleStaleDevices(TextSecureAddress recipient, StaleDevices staleDevices) {
Iterator var3 = staleDevices.getStaleDevices().iterator();
while(var3.hasNext()) {
int staleDeviceId = ((Integer)var3.next()).intValue();
this.store.deleteSession(new AxolotlAddress(recipient.getNumber(), staleDeviceId));
}
}
示例3: StaleDevicesException
import org.whispersystems.textsecure.internal.push.StaleDevices; //导入依赖的package包/类
public StaleDevicesException(StaleDevices staleDevices) {
this.staleDevices = staleDevices;
}
示例4: getStaleDevices
import org.whispersystems.textsecure.internal.push.StaleDevices; //导入依赖的package包/类
public StaleDevices getStaleDevices() {
return staleDevices;
}