add models for retraction
This commit is contained in:
parent
2d10a561e4
commit
94c8b9ed04
|
@ -91,6 +91,7 @@ public final class Namespace {
|
|||
public static final String REGISTER = "jabber:iq:register";
|
||||
public static final String REGISTER_STREAM_FEATURE = "http://jabber.org/features/iq-register";
|
||||
public static final String REPLY = "urn:xmpp:reply:0";
|
||||
public static final String RETRACT = "urn:xmpp:message-retract:0";
|
||||
public static final String ROSTER = "jabber:iq:roster";
|
||||
public static final String SASL = "urn:ietf:params:xml:ns:xmpp-sasl";
|
||||
public static final String SASL_2 = "urn:xmpp:sasl:2";
|
||||
|
|
|
@ -2,5 +2,7 @@ package im.conversations.android.database.model;
|
|||
|
||||
public enum PartType {
|
||||
TEXT,
|
||||
FILE
|
||||
FILE,
|
||||
RETRACTION,
|
||||
MODERATION
|
||||
}
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
package im.conversations.android.xmpp.model.retract;
|
||||
|
||||
import im.conversations.android.xmpp.model.Extension;
|
||||
|
||||
public class Retract extends Extension {
|
||||
|
||||
public Retract() {
|
||||
super(Retract.class);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
package im.conversations.android.xmpp.model.retract;
|
||||
|
||||
import im.conversations.android.xmpp.model.Extension;
|
||||
|
||||
public class Retracted extends Extension {
|
||||
|
||||
public Retracted() {
|
||||
super(Retracted.class);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
@XmlPackage(namespace = Namespace.RETRACT)
|
||||
package im.conversations.android.xmpp.model.retract;
|
||||
|
||||
import eu.siacs.conversations.xml.Namespace;
|
||||
import im.conversations.android.annotation.XmlPackage;
|
Loading…
Reference in a new issue