107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
|
}
- initWithName: (OFString *)name
type: (OFString *)type
ID: (OFString *)ID
{
self = [super initWithName: name
namespace: XMPP_NS_CLIENT];
@try {
if (![name isEqual: @"iq"] && ![name isEqual: @"message"] &&
![name isEqual: @"presence"])
@throw [OFInvalidArgumentException exception];
[self setDefaultNamespace: XMPP_NS_CLIENT];
|
|
>
|
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
|
}
- initWithName: (OFString *)name
type: (OFString *)type
ID: (OFString *)ID
{
self = [super initWithName: name
namespace: XMPP_NS_CLIENT
stringValue: nil];
@try {
if (![name isEqual: @"iq"] && ![name isEqual: @"message"] &&
![name isEqual: @"presence"])
@throw [OFInvalidArgumentException exception];
[self setDefaultNamespace: XMPP_NS_CLIENT];
|