(name: string)
| 161 | } |
| 162 | |
| 163 | getFirstProperty(name: string): any | null { |
| 164 | const multi = this.multiProperties.get(name); |
| 165 | if (multi && multi.length > 0) return multi[0]; |
| 166 | if (this.properties.has(name)) { |
| 167 | return new ICAL.Property(name, this.properties.get(name), {}); |
| 168 | } |
| 169 | return null; |
| 170 | } |
| 171 | |
| 172 | addPropertyWithValue(name: string, value: any): void { |
| 173 | this.properties.set(name, value); |