Package caldavclientlibrary :: Package client :: Module calendaruseraddress
[hide private]
[frames] | no frames]

Source Code for Module caldavclientlibrary.client.calendaruseraddress

 1  ## 
 2  # Copyright (c) 2006-2016 Apple Inc. All rights reserved. 
 3  # 
 4  # Licensed under the Apache License, Version 2.0 (the "License"); 
 5  # you may not use this file except in compliance with the License. 
 6  # You may obtain a copy of the License at 
 7  # 
 8  # http://www.apache.org/licenses/LICENSE-2.0 
 9  # 
10  # Unless required by applicable law or agreed to in writing, software 
11  # distributed under the License is distributed on an "AS IS" BASIS, 
12  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
13  # See the License for the specific language governing permissions and 
14  # limitations under the License. 
15  ## 
16   
17   
18 -class CalendarUserAddress(object):
19
20 - def __init__(self, cuaddr=None, name=None, attendee=None):
21 self.cuaddr = cuaddr 22 self.name = name 23 if attendee: 24 self.setAttendee(attendee)
25
26 - def getCUAddr(self):
27 return self.cuaddr
28
29 - def setCUAddr(self, value):
30 self.cuaddr = value
31
32 - def getName(self):
33 return self.name
34
35 - def setCn(self, value):
36 self.name = value
37
38 - def getFullText(self):
39 return ("%s <%s>" % (self.name, self.cuaddr,)) if self.name else ("<%s>" % (self.cuaddr,))
40
41 - def getAttendeeProperty(self):
42 pass
43
44 - def setAttendee(self, attendee):
45 pass
46