@@ -1,9 +1,10 @@ /* * Copyright (c) 2013, Florian Zeitz + * Copyright (c) 2013, 2016, Jonathan Schleifer * - * https://webkeks.org/git/?p=objxmpp.git + * https://heap.zone/git/?p=objxmpp.git * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice is present in all copies. * @@ -27,17 +28,20 @@ #import "XMPPDiscoNode.h" #import "XMPPDiscoIdentity.h" #import "namespaces.h" @implementation XMPPDiscoNode + +@synthesize JID = _JID, node = _node, name = _name, identities = _identities; +@synthesize features = _features, childNodes = _childNodes; + + (instancetype)discoNodeWithJID: (XMPPJID*)JID node: (OFString*)node; { return [[[self alloc] initWithJID: JID node: node] autorelease]; } - + (instancetype)discoNodeWithJID: (XMPPJID*)JID node: (OFString*)node name: (OFString*)name { @@ -92,40 +96,10 @@ [_childNodes release]; [super dealloc]; } -- (XMPPJID*)JID -{ - OF_GETTER(_JID, true) -} - -- (OFString*)node -{ - OF_GETTER(_node, true) -} - -- (OFString*)name -{ - OF_GETTER(_name, true) -} - -- (OFSortedList*)identities -{ - OF_GETTER(_identities, true) -} - -- (OFSortedList*)features -{ - OF_GETTER(_features, true) -} - -- (OFDictionary*)childNodes -{ - OF_GETTER(_childNodes, true) -} - - (void)addIdentity: (XMPPDiscoIdentity*)identity { [_identities insertObject: identity]; }