Condition.java

  1package im.conversations.android.xmpp.model.error;
  2
  3import eu.siacs.conversations.xml.Namespace;
  4import im.conversations.android.annotation.XmlElement;
  5import im.conversations.android.xmpp.model.Extension;
  6
  7public abstract class Condition extends Extension {
  8
  9    private Condition(Class<? extends Condition> clazz) {
 10        super(clazz);
 11    }
 12
 13    @XmlElement(namespace = Namespace.STANZAS)
 14    public static class BadRequest extends Condition {
 15
 16        public BadRequest() {
 17            super(BadRequest.class);
 18        }
 19    }
 20
 21    @XmlElement(namespace = Namespace.STANZAS)
 22    public static class Conflict extends Condition {
 23
 24        public Conflict() {
 25            super(Conflict.class);
 26        }
 27    }
 28
 29    @XmlElement(namespace = Namespace.STANZAS)
 30    public static class FeatureNotImplemented extends Condition {
 31
 32        public FeatureNotImplemented() {
 33            super(FeatureNotImplemented.class);
 34        }
 35    }
 36
 37    @XmlElement(namespace = Namespace.STANZAS)
 38    public static class Forbidden extends Condition {
 39
 40        public Forbidden() {
 41            super(Forbidden.class);
 42        }
 43    }
 44
 45    @XmlElement(namespace = Namespace.STANZAS)
 46    public static class Gone extends Condition {
 47
 48        public Gone() {
 49            super(Gone.class);
 50        }
 51    }
 52
 53    @XmlElement(namespace = Namespace.STANZAS)
 54    public static class InternalServerError extends Condition {
 55
 56        public InternalServerError() {
 57            super(InternalServerError.class);
 58        }
 59    }
 60
 61    @XmlElement(namespace = Namespace.STANZAS)
 62    public static class ItemNotFound extends Condition {
 63
 64        public ItemNotFound() {
 65            super(ItemNotFound.class);
 66        }
 67    }
 68
 69    @XmlElement(namespace = Namespace.STANZAS)
 70    public static class JidMalformed extends Condition {
 71
 72        public JidMalformed() {
 73            super(JidMalformed.class);
 74        }
 75    }
 76
 77    @XmlElement(namespace = Namespace.STANZAS)
 78    public static class NotAcceptable extends Condition {
 79
 80        public NotAcceptable() {
 81            super(NotAcceptable.class);
 82        }
 83    }
 84
 85    @XmlElement(namespace = Namespace.STANZAS)
 86    public static class NotAllowed extends Condition {
 87
 88        public NotAllowed() {
 89            super(NotAllowed.class);
 90        }
 91    }
 92
 93    @XmlElement(namespace = Namespace.STANZAS)
 94    public static class NotAuthorized extends Condition {
 95
 96        public NotAuthorized() {
 97            super(NotAuthorized.class);
 98        }
 99    }
100
101    @XmlElement(namespace = Namespace.STANZAS)
102    public static class PaymentRequired extends Condition {
103
104        public PaymentRequired() {
105            super(PaymentRequired.class);
106        }
107    }
108
109    @XmlElement(namespace = Namespace.STANZAS)
110    public static class RecipientUnavailable extends Condition {
111
112        public RecipientUnavailable() {
113            super(RecipientUnavailable.class);
114        }
115    }
116
117    @XmlElement(namespace = Namespace.STANZAS)
118    public static class Redirect extends Condition {
119
120        public Redirect() {
121            super(Redirect.class);
122        }
123    }
124
125    @XmlElement(namespace = Namespace.STANZAS)
126    public static class RegistrationRequired extends Condition {
127
128        public RegistrationRequired() {
129            super(RegistrationRequired.class);
130        }
131    }
132
133    @XmlElement(namespace = Namespace.STANZAS)
134    public static class RemoteServerNotFound extends Condition {
135
136        public RemoteServerNotFound() {
137            super(RemoteServerNotFound.class);
138        }
139    }
140
141    @XmlElement(namespace = Namespace.STANZAS)
142    public static class RemoteServerTimeout extends Condition {
143
144        public RemoteServerTimeout() {
145            super(RemoteServerTimeout.class);
146        }
147    }
148
149    @XmlElement(namespace = Namespace.STANZAS)
150    public static class ResourceConstraint extends Condition {
151
152        public ResourceConstraint() {
153            super(ResourceConstraint.class);
154        }
155    }
156
157    @XmlElement(namespace = Namespace.STANZAS)
158    public static class ServiceUnavailable extends Condition {
159
160        public ServiceUnavailable() {
161            super(ServiceUnavailable.class);
162        }
163    }
164
165    @XmlElement(namespace = Namespace.STANZAS)
166    public static class SubscriptionRequired extends Condition {
167
168        public SubscriptionRequired() {
169            super(SubscriptionRequired.class);
170        }
171    }
172
173    @XmlElement(namespace = Namespace.STANZAS)
174    public static class UndefinedCondition extends Condition {
175
176        public UndefinedCondition() {
177            super(UndefinedCondition.class);
178        }
179    }
180
181    @XmlElement(namespace = Namespace.STANZAS)
182    public static class UnexpectedRequest extends Condition {
183
184        public UnexpectedRequest() {
185            super(UnexpectedRequest.class);
186        }
187    }
188}