本文整理匯總了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;
}