46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
return 4;
OF_ENSURE(0);
}
@implementation XMPPPresence
@dynamic type;
+ (instancetype)presence
{
return [[[self alloc] init] autorelease];
}
+ (instancetype)presenceWithID: (OFString *)ID
|
>
|
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
return 4;
OF_ENSURE(0);
}
@implementation XMPPPresence
@dynamic type;
@synthesize status = _status, show = _show, priority = _priority;
+ (instancetype)presence
{
return [[[self alloc] init] autorelease];
}
+ (instancetype)presenceWithID: (OFString *)ID
|
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
|
} @catch (id e) {
[self release];
@throw e;
}
return self;
}
- (void)dealloc
{
[_status release];
[_show release];
[_priority release];
|
<
|
123
124
125
126
127
128
129
130
131
132
133
134
135
136
|
} @catch (id e) {
[self release];
@throw e;
}
return self;
}
- (void)dealloc
{
[_status release];
[_show release];
[_priority release];
|