69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
|
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
|
-
+
-
+
-
+
-
-
+
+
-
+
|
+ (instancetype)presenceWithType: (OFString *)type
ID: (OFString *)ID
{
return [[[self alloc] initWithType: type
ID: ID] autorelease];
}
- init
- (instancetype)init
{
return [self initWithType: nil
ID: nil];
}
- initWithID: (OFString *)ID
- (instancetype)initWithID: (OFString *)ID
{
return [self initWithType: nil
ID: ID];
}
- initWithType: (OFString *)type
- (instancetype)initWithType: (OFString *)type
{
return [self initWithType: type
ID: nil];
}
- initWithType: (OFString *)type
ID: (OFString *)ID
- (instancetype)initWithType: (OFString *)type
ID: (OFString *)ID
{
return [super initWithName: @"presence"
type: type
ID: ID];
}
- initWithElement: (OFXMLElement *)element
- (instancetype)initWithElement: (OFXMLElement *)element
{
self = [super initWithElement: element];
@try {
OFXMLElement *subElement;
if ((subElement = [element elementForName: @"show"
|