@@ -1,9 +1,10 @@ /* - * Copyright (c) 2011, Jonathan Schleifer + * Copyright (c) 2011, 2012, 2013, 2016, Jonathan Schleifer + * Copyright (c) 2012, Florian Zeitz * - * 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. * @@ -28,10 +29,13 @@ #import "XMPPJID.h" #import @implementation XMPPRosterItem +@synthesize JID = _JID, name = _name, subscription = _subscription; +@synthesize groups = _groups; + + (instancetype)rosterItem { return [[[self alloc] init] autorelease]; } @@ -66,46 +70,6 @@ { return [OFString stringWithFormat: @"", _JID, _name, _subscription, _groups]; } - -- (void)setJID: (XMPPJID*)JID -{ - OF_SETTER(_JID, JID, true, 1) -} - -- (XMPPJID*)JID -{ - OF_GETTER(_JID, true) -} - -- (void)setName: (OFString*)name -{ - OF_SETTER(_name, name, true, 1) -} - -- (OFString*)name -{ - OF_GETTER(_name, true) -} - -- (void)setSubscription: (OFString*)subscription -{ - OF_SETTER(_subscription, subscription, true, 1) -} - -- (OFString*)subscription -{ - OF_GETTER(_subscription, true) -} - -- (void)setGroups: (OFArray*)groups -{ - OF_SETTER(_groups, groups, true, 1) -} - -- (OFArray*)groups -{ - OF_GETTER(_groups, true) -} @end