MCPcopy Create free account
hub / github.com/e2wugui/zeze / getLogoutVersion

Method getLogoutVersion

ZezeJava/ZezeJava/src/main/java/Zeze/Arch/Online.java:663–681  ·  view source on GitHub ↗
(@NotNull String account, @NotNull String clientId)

Source from the content-addressed store, hash-verified

661 }
662
663 public @Nullable Long getLogoutVersion(@NotNull String account, @NotNull String clientId) {
664 /* 不再检查offline。
665 var online = _tonline.get(account);
666 if (null == online)
667 return null; // is not online
668 var login = online.getLogins().get(clientId);
669 if (null == login)
670 return null; // is not login
671 */
672 var online = getOnline(account);
673 if (online == null)
674 return 0L;
675 var login = online.getLogins().get(clientId);
676 if (login == null)
677 return 0L;
678 if (login.getLink().getState() != eOffline)
679 return null;
680 return login.getLogoutVersion();
681 }
682
683 public @Nullable Long getLoginVersion(@NotNull String account, @NotNull String clientId) {
684 var login = getLogin(account, clientId);

Callers

nothing calls this directly

Calls 6

getOnlineMethod · 0.95
getMethod · 0.65
getStateMethod · 0.65
getLinkMethod · 0.65
getLogoutVersionMethod · 0.65
getLoginsMethod · 0.45

Tested by

no test coverage detected