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

Method query

src/main/java/xmpp/extensions/IqPing.java:45–50  ·  view source on GitHub ↗
(String to, String id)

Source from the content-addressed store, hash-verified

43 private final static String _PING_="_ping_";
44
45 public static JabberDataBlock query(String to, String id) {
46 String newId=(id==null)?_PING_+Time.utcTimeMillis():id;
47 JabberDataBlock result=new Iq(to, Iq.TYPE_GET, newId);
48 result.addChildNs(PING, "urn:xmpp:ping");
49 return result;
50 }
51
52 public int blockArrived(JabberDataBlock data) {
53 if (!(data instanceof Iq))

Callers 2

pingMethod · 0.95
doActionMethod · 0.95

Calls 2

utcTimeMillisMethod · 0.95
addChildNsMethod · 0.80

Tested by

no test coverage detected