package asmack.org.jivesoftware.smackx.packet; import asmack.org.jivesoftware.smack.packet.IQ; import asmack.org.jivesoftware.smack.packet.PacketExtension; public class IBBExtensions { public static final String NAMESPACE = "http://jabber.org/protocol/ibb"; public static class Close extends IBB { public static final String ELEMENT_NAME = "close"; public Close(String str) { super(str, null); } @Override // asmack.org.jivesoftware.smack.packet.IQ public String getChildElementXML() { return "<" + getElementName() + " xmlns=\"" + getNamespace() + "\" " + "sid=\"" + getSessionID() + "\"" + "/>"; } public String getElementName() { return ELEMENT_NAME; } @Override // asmack.org.jivesoftware.smackx.packet.IBBExtensions.IBB public /* bridge */ /* synthetic */ String getNamespace() { return super.getNamespace(); } @Override // asmack.org.jivesoftware.smackx.packet.IBBExtensions.IBB public /* bridge */ /* synthetic */ String getSessionID() { return super.getSessionID(); } } public static class Data implements PacketExtension { public static final String ELEMENT_NAME = "data"; private String data; private long seq; final String sid; public Data(String str) { this.sid = str; } public Data(String str, long j, String str2) { this(str); this.seq = j; this.data = str2; } public String getData() { return this.data; } @Override // asmack.org.jivesoftware.smack.packet.PacketExtension public String getElementName() { return "data"; } @Override // asmack.org.jivesoftware.smack.packet.PacketExtension public String getNamespace() { return "http://jabber.org/protocol/ibb"; } public long getSeq() { return this.seq; } public String getSessionID() { return this.sid; } public void setData(String str) { this.data = str; } public void setSeq(long j) { this.seq = j; } @Override // asmack.org.jivesoftware.smack.packet.PacketExtension public String toXML() { return "<" + getElementName() + " xmlns=\"" + getNamespace() + "\" " + "sid=\"" + getSessionID() + "\" " + "seq=\"" + getSeq() + "\"" + ">" + getData() + "</" + getElementName() + ">"; } } /* access modifiers changed from: private */ public static abstract class IBB extends IQ { final String sid; private IBB(String str) { this.sid = str; } /* synthetic */ IBB(String str, IBB ibb) { this(str); } public String getNamespace() { return "http://jabber.org/protocol/ibb"; } public String getSessionID() { return this.sid; } } public static class Open extends IBB { public static final String ELEMENT_NAME = "open"; private final int blockSize; public Open(String str, int i) { super(str, null); this.blockSize = i; } public int getBlockSize() { return this.blockSize; } @Override // asmack.org.jivesoftware.smack.packet.IQ public String getChildElementXML() { return "<" + getElementName() + " xmlns=\"" + getNamespace() + "\" " + "sid=\"" + getSessionID() + "\" " + "block-size=\"" + getBlockSize() + "\"" + "/>"; } public String getElementName() { return "open"; } @Override // asmack.org.jivesoftware.smackx.packet.IBBExtensions.IBB public /* bridge */ /* synthetic */ String getNamespace() { return super.getNamespace(); } @Override // asmack.org.jivesoftware.smackx.packet.IBBExtensions.IBB public /* bridge */ /* synthetic */ String getSessionID() { return super.getSessionID(); } } }