[OGo-XML-RPC] Appointments with notification time

Adam Tauno Williams xmlrpc@opengroupware.org
Mon, 14 Aug 2006 13:30:39 -0400


On Mon, 2006-08-14 at 18:27 +0200, Fabi Avilés wrote:
> Hi people, I want to know if it is possible to set the notification
> time of an appointment usime xmlrpc methods. I've tryed to put it into
> a hashtable with all the rest of the information, but it seems not to
> be the correct way. 

No, unfortunately that attribute is not coded/decoded in
SkyAppointmentDocument+XmlRpcCoding.m.  But it you add  -

[self setNotificationTime: [_coder
decodeObjectForKey:@"notificationTime"]];

- to "(id)initWithXmlRpcCoder:(XmlRpcDecoder *)_coder" and -

[_coder encodeObject:[self notificationTime]
forKey:@"notificationTime"]; -

to "(void)encodeWithXmlRpcCoder:(id)_coder" it does work.  I think there
is a patch in Bugzilla for this.

And add @"notificationTime" to the array in
XmlRpcAPI/Actions.subproj/DirectAction+Appointment.m;  mine looks like -

- (void)_takeValuesDict:(NSDictionary *)_from
  toAppointment:(SkyAppointmentDocument **)_to
{
  // TODO: document. Apparently those are the keys which can be changed?
  [*_to takeValuesFromObject:_from
        keys:@"startDate", @"endDate", @"title", @"location",
@"cycleEndDate",
        @"type", @"comment", @"aptType", @"accessTeamId",
@"writeAccess",
        @"notificationTime", @"resourceNames", @"parentDateId", nil];
}


It is also important to know that notificationTime is not a time,  it
appears to be the number of minutes prior to the start time;  so it is
an integer (NSNumber).