@@ -32,22 +32,22 @@ + (instancetype)message { return [[[self alloc] init] autorelease]; } -+ (instancetype)messageWithID: (OFString*)ID ++ (instancetype)messageWithID: (OFString *)ID { return [[[self alloc] initWithID: ID] autorelease]; } -+ (instancetype)messageWithType: (OFString*)type ++ (instancetype)messageWithType: (OFString *)type { return [[[self alloc] initWithType: type] autorelease]; } -+ (instancetype)messageWithType: (OFString*)type - ID: (OFString*)ID ++ (instancetype)messageWithType: (OFString *)type + ID: (OFString *)ID { return [[[self alloc] initWithType: type ID: ID] autorelease]; } @@ -55,31 +55,31 @@ { return [self initWithType: nil ID: nil]; } -- initWithID: (OFString*)ID +- initWithID: (OFString *)ID { return [self initWithType: nil ID: ID]; } -- initWithType: (OFString*)type +- initWithType: (OFString *)type { return [self initWithType: type ID: nil]; } -- initWithType: (OFString*)type - ID: (OFString*)ID +- initWithType: (OFString *)type + ID: (OFString *)ID { return [super initWithName: @"message" type: type ID: ID]; } -- (void)setBody: (OFString*)body +- (void)setBody: (OFString *)body { OFXMLElement *oldBody = [self elementForName: @"body" namespace: XMPP_NS_CLIENT]; if (oldBody != nil) @@ -89,11 +89,11 @@ [self addChild: [OFXMLElement elementWithName: @"body" namespace: XMPP_NS_CLIENT stringValue: body]]; } -- (OFString*)body +- (OFString *)body { return [[self elementForName: @"body" namespace: XMPP_NS_CLIENT] stringValue]; } @end