47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
+ (instancetype)messageWithType: (OFString *)type
ID: (OFString *)ID
{
return [[[self alloc] initWithType: type
ID: ID] autorelease];
}
- init
{
return [self initWithType: nil
ID: nil];
}
- initWithID: (OFString *)ID
{
return [self initWithType: nil
ID: ID];
}
- initWithType: (OFString *)type
{
return [self initWithType: type
ID: nil];
}
- initWithType: (OFString *)type
ID: (OFString *)ID
{
return [super initWithName: @"message"
type: type
ID: ID];
}
- (void)setBody: (OFString *)body
|
|
|
|
|
|
|
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
+ (instancetype)messageWithType: (OFString *)type
ID: (OFString *)ID
{
return [[[self alloc] initWithType: type
ID: ID] autorelease];
}
- (instancetype)init
{
return [self initWithType: nil
ID: nil];
}
- (instancetype)initWithID: (OFString *)ID
{
return [self initWithType: nil
ID: ID];
}
- (instancetype)initWithType: (OFString *)type
{
return [self initWithType: type
ID: nil];
}
- (instancetype)initWithType: (OFString *)type
ID: (OFString *)ID
{
return [super initWithName: @"message"
type: type
ID: ID];
}
- (void)setBody: (OFString *)body
|