pim-types: add lastModified.

master
Tom Hacohen 4 years ago
parent ffe60f8b28
commit 66331a4e2a

@ -14,6 +14,7 @@ export interface PimType {
itemUid?: string; itemUid?: string;
toIcal(): string; toIcal(): string;
clone(): PimType; clone(): PimType;
lastModified: ICAL.Time | undefined;
} }
export function timezoneLoadFromName(timezone: string | null) { export function timezoneLoadFromName(timezone: string | null) {
@ -385,6 +386,10 @@ export class ContactType implements PimType {
return this.comp.getFirstPropertyValue("bday"); return this.comp.getFirstPropertyValue("bday");
} }
get lastModified() {
return this.comp.getFirstPropertyValue("rev");
}
get group() { get group() {
const kind = this.comp.getFirstPropertyValue("kind"); const kind = this.comp.getFirstPropertyValue("kind");
return ["group", "organization"].includes(kind); return ["group", "organization"].includes(kind);

Loading…
Cancel
Save