add models for retraction

This commit is contained in:
Daniel Gultsch 2023-02-13 19:06:48 +01:00
parent 2d10a561e4
commit 94c8b9ed04
No known key found for this signature in database
GPG key ID: F43D18AD2A0982C2
5 changed files with 29 additions and 1 deletions

View file

@ -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";

View file

@ -2,5 +2,7 @@ package im.conversations.android.database.model;
public enum PartType {
TEXT,
FILE
FILE,
RETRACTION,
MODERATION
}

View file

@ -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);
}
}

View file

@ -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);
}
}

View file

@ -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;