aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/thedevstack/conversationsplus/xmpp/delay/Delay.java
blob: 3f1dd50eae6d4df33397137869627971a8117e6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package de.thedevstack.conversationsplus.xmpp.delay;

import de.thedevstack.conversationsplus.xml.Element;
import de.thedevstack.conversationsplus.xml.XmlElementContainer;

/**
 */
public enum Delay implements XmlElementContainer {
    DELAY("delay");

    private Element xmlElement;

    Delay(String elementName) {
        this.xmlElement = new Element(elementName, NAMESPACE);
    }

    @Override
    public Element getXmlElement() {
        return xmlElement;
    }

    /**
     * The namespace of the delay timestamp as defined in XEP-0203.
     * @see <a href="https://xmpp.org/extensions/xep-0203.html">https://xmpp.org/extensions/xep-0203.html</a>
     */
    public static final String NAMESPACE = "urn:xmpp:delay";
}