92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
{
self = [super initWithName: name
namespace: XMPP_NS_CLIENT];
@try {
if (![name isEqual: @"iq"] && ![name isEqual: @"message"] &&
![name isEqual: @"presence"])
@throw [OFInvalidArgumentException
exceptionWithClass: [self class]
selector: _cmd];
[self setDefaultNamespace: XMPP_NS_CLIENT];
[self setPrefix: @"stream"
forNamespace: XMPP_NS_STREAM];
if (type != nil)
[self setType: type];
|
|
<
<
|
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
|
{
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];
[self setPrefix: @"stream"
forNamespace: XMPP_NS_STREAM];
if (type != nil)
[self setType: type];
|