39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
if ([show isEqual: @"dnd"]) return 3;
if ([show isEqual: @"xa"]) return 4;
assert(0);
}
@implementation XMPPPresence
+ presence
{
return [[[self alloc] init] autorelease];
}
+ presenceWithID: (OFString*)ID
{
return [[[self alloc] initWithID: ID] autorelease];
}
+ presenceWithType: (OFString*)type
{
return [[[self alloc] initWithType: type] autorelease];
}
+ presenceWithType: (OFString*)type
ID: (OFString*)ID
{
return [[[self alloc] initWithType: type
ID: ID] autorelease];
}
- init
{
|
|
|
|
|
|
|
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
if ([show isEqual: @"dnd"]) return 3;
if ([show isEqual: @"xa"]) return 4;
assert(0);
}
@implementation XMPPPresence
+ (instancetype)presence
{
return [[[self alloc] init] autorelease];
}
+ (instancetype)presenceWithID: (OFString*)ID
{
return [[[self alloc] initWithID: ID] autorelease];
}
+ (instancetype)presenceWithType: (OFString*)type
{
return [[[self alloc] initWithType: type] autorelease];
}
+ (instancetype)presenceWithType: (OFString*)type
ID: (OFString*)ID
{
return [[[self alloc] initWithType: type
ID: ID] autorelease];
}
- init
{
|