Skip to content

Latest commit

 

History

History
92 lines (62 loc) · 3.08 KB

attendee.md

File metadata and controls

92 lines (62 loc) · 3.08 KB

vobject.attendee() RFC

This is an ATTENDEE property of a VEVENT which is an instance of a person object. Multiple attendee properties can be added to an event.

Usage:

var attendee = vobject.attendee();
attendee.setRole('REQ-PARTICIPANT');
attendee.setPartStat('NEEDS-ACTION');
attendee.setRSVP('TRUE');
attendee.toICS();

Example:

ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN=Joey Dong;X-NUM-GUESTS=0:mailto:joey@sunrise.am

attendee.setCUTYPE(cutype) RFC
  • cutype to set for the attendee. Expects a STRING. Ex: INDIVIDUAL, GROUP, RESOURCE, ROOM

For the majority of cases, it should be set to INDIVIDUAL.

"INDIVIDUAL"   ; An individual
"GROUP"        ; A group of individuals
"RESOURCE"     ; A physical resource
"ROOM"         ; A room resource
"UNKNOWN"      ; Otherwise not known
x-name         ; Experimental type
iana-token)    ; Other IANA-registered
               ; type
; Default is INDIVIDUAL
attendee.getCUTYPE() RFC
  • returns the cutype for the attendee

attendee.setRole(role) RFC
  • role to set for the attendee. Expects a STRING. Ex: REQ-PARTICIPANT
"REQ-PARTICIPANT"   ; Indicates a participant whose
                    ; participation is required
"OPT-PARTICIPANT"   ; Indicates a participant whose
                    ; participation is optional
"NON-PARTICIPANT"   ; Indicates a participant who
                    ; is copied for information
                    ; purposes only
attendee.getRole() RFC
  • returns the role for the attendee

attendee.setPartStat(partstat) RFC
  • partstat to set for the attendee. Expects a STRING. Ex: NEEDS-ACTION, ACCEPTED, DECLINED, TENTATIVE
"NEEDS-ACTION"    ; Event needs action
"ACCEPTED"        ; Event accepted
"DECLINED"        ; Event declined
"TENTATIVE"       ; Event tentatively accepted
attendee.getPartStat() RFC
  • returns the participation status for the attendee. Ex: ACCEPTED

attendee.setRSVP(rsvp) RFC
  • rsvp action for the attendee. Expects a STRING. Ex: TRUE, FALSE

Usually set to TRUE when an RSVP is requested and omitted otherwise.

attendee.getRSVP() RFC
  • returns the rsvp action for the attendee