package de.thedevstack.conversationsplus.xmpp.time; import de.thedevstack.conversationsplus.xmpp.iqversion.IqVersionPacket; import de.thedevstack.conversationsplus.xmpp.stanzas.IqPacket; /** * Generates the IQ Packets for Entity Time * as defined in XEP-0202. * @see http://xmpp.org/extensions/xep-0202.html */ public final class TimePacketGenerator { /** * Generates the IqPacket to reply the entity time. *
     * 
     *   
     * 
     * 
* @param packet * @return */ public static TimePacket generateResponse(IqPacket packet) { TimePacket timePacket = new TimePacket(); timePacket.setTo(packet.getFrom()); timePacket.setId(packet.getId()); return timePacket; } private TimePacketGenerator() {} }