MCPcopy Create free account
hub / github.com/BombusMod/BombusMod / dispatchLast

Method dispatchLast

src/main/java/xmpp/extensions/IqLast.java:113–122  ·  view source on GitHub ↗
(JabberDataBlock data)

Source from the content-addressed store, hash-verified

111 }
112
113 public static String dispatchLast(JabberDataBlock data) {
114 if (!data.isJabberNameSpace("jabber:iq:last")) return "unknown last namespace";
115 StringBuffer tm=new StringBuffer();
116 String field=data.getAttribute("seconds");
117
118 if (field!=null) {
119 tm.append(Time.secDiffToDate(Integer.parseInt(field)));
120 }
121 return tm.toString();
122 }
123
124}

Callers 1

blockArrivedMethod · 0.95

Calls 5

secDiffToDateMethod · 0.95
isJabberNameSpaceMethod · 0.80
appendMethod · 0.80
getAttributeMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected