Implement LeaveElementProvider

This commit is contained in:
Paul Schaub 2020-02-29 01:48:15 +01:00
parent 4845572aee
commit d38f1c7726
1 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,22 @@
package org.jivesoftware.smackx.mix.core.provider;
import java.io.IOException;
import org.jivesoftware.smack.packet.XmlEnvironment;
import org.jivesoftware.smack.parsing.SmackParsingException;
import org.jivesoftware.smack.provider.ExtensionElementProvider;
import org.jivesoftware.smack.xml.XmlPullParser;
import org.jivesoftware.smack.xml.XmlPullParserException;
import org.jivesoftware.smackx.mix.core.element.LeaveElement;
public abstract class LeaveElementProvider extends ExtensionElementProvider<LeaveElement> {
public static class V1 extends LeaveElementProvider {
@Override
public LeaveElement parse(XmlPullParser parser, int initialDepth, XmlEnvironment xmlEnvironment)
throws XmlPullParserException, IOException, SmackParsingException {
return new LeaveElement.V1();
}
}
}