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

Method getState

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

Source from the content-addressed store, hash-verified

283 }
284
285 public int getState(@NotNull String account, @NotNull String clientId) {
286 var onlines = getOnline(account);
287 if (onlines == null)
288 return eOffline;
289 var login = onlines.getLogins().get(clientId);
290 return login != null ? login.getLink().getState() : eOffline;
291 }
292
293 public int getLocalCount() {
294 return _tlocal.getCacheSize();

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected