Sent.java 532 Bytes
Newer Older
1 2 3 4 5 6
package org.jivesoftware.openfire.carbons;

import org.jivesoftware.openfire.forward.Forwarded;
import org.xmpp.packet.PacketExtension;

/**
7 8 9
 * The implementation of the {@code <sent xmlns="urn:xmpp:carbons:2"/>} extension.
 * It indicates, that a message has been sent by the same user from another resource.
 *
10 11
 * @author Christian Schudt
 */
12
public final class Sent extends PacketExtension {
13 14 15 16 17
    public Sent(Forwarded forwarded) {
        super("sent", "urn:xmpp:carbons:2");
        element.add(forwarded.getElement());
    }
}