MCPcopy Index your code
hub / github.com/BombusMod/BombusMod / presenceEntityCaps

Method presenceEntityCaps

src/main/java/xmpp/EntityCaps.java:115–127  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

113 }
114
115 public static JabberDataBlock presenceEntityCaps() {
116 try {
117 JabberDataBlock c = new JabberDataBlock("c");
118 c.setAttribute("xmlns", NS_CAPS);
119 c.setAttribute("node", BOMBUS_NAMESPACE);//+'#'+Version.getVersionNumber());
120 c.setAttribute("ver", calcVerHash());
121 c.setAttribute("hash", "sha-1");
122 return c;
123 } catch (Exception e) {
124 e.printStackTrace();
125 return null;
126 }
127 }
128 private final static String BOMBUS_NAMESPACE = StaticData.getInstance().getVersionInfo().getUrl() + "/caps";
129 private final static String BOMBUS_ID_CATEGORY = "client";
130 private final static String BOMBUS_ID_TYPE = "mobile";

Callers 1

PresenceMethod · 0.95

Calls 2

setAttributeMethod · 0.95
calcVerHashMethod · 0.95

Tested by

no test coverage detected