apognu / gocal

ICS file parser in Golang
MIT License
78 stars 24 forks source link

Parse method from ICAL calendar #14

Closed vovanec closed 4 years ago

vovanec commented 4 years ago

Calendar may include "method" (as per https://tools.ietf.org/html/rfc2446#page-14) I need to handle it for my personal project,

apognu commented 4 years ago

Hi, thanks for the PR.

I have no problem merging this. I will not have access to my workstation until tonight, so I will probably have a look at this by then.

Out of curiosity, and as I'm not familiar with this property at all, could you explain what it's used for? Some sort of instruction to merge ad-hoc iCalendar objects into another?

vovanec commented 4 years ago

Per https://tools.ietf.org/html/rfc2446#section-3.2 , it defines "methods for exchanging [iCAL] objects for the purposes of group calendaring and scheduling between "Calendar Users". E.g. using method in meeting scheduling you can differentiate between "attendee declined" (Method REPLY with DECLINE status) and "attendee declined and proposed a new time" (Method COUINTER with DECLINE status).