class CopiedEvent(Event): ELEMENT_NAME = 'CopiedEvent' FIELDS = [ # type: List[Field] TextField('watermark', field_uri='Watermark', is_required=False), DateTimeField('timestamp', field_uri='TimeStamp'), IdAndChangekeyField('parent_folder_id', field_uri='ParentFolderId', is_attribute=False), IdAndChangekeyField('old_parent_folder_id', field_uri='OldParentFolderId', is_attribute=False) ] __slots__ = ('watermark', 'timestamp', 'parent_folder_id', 'old_folder_id')
class FreeBusyChangedEvent(Event): ELEMENT_NAME = 'FreeBusyChangedEvent' FIELDS = [ TextField('watermark', field_uri='Watermark', is_required=False), DateTimeField('timestamp', field_uri='TimeStamp'), IdAndChangekeyField('item_id', field_uri='ItemId', is_required=True, is_attribute=False), IdAndChangekeyField('parent_folder_id', field_uri='ParentFolderId', is_required=True, is_attribute=False), ] __slots__ = ('watermark', 'timestamp', 'item_id', 'parent_folder_id')
class ReadFlagChange(ItemChange): ELEMENT_NAME = "ReadFlagChange" FIELDS = [ IdAndChangekeyField("item_id", field_uri="ItemId"), BooleanField("is_read", field_uri="message:IsRead"), ] __slots__ = ("item_id", "is_read")
class ModifiedEvent(Event): ELEMENT_NAME = 'ModifiedEvent' FIELDS = [ # type: List[Field] TextField('watermark', field_uri='Watermark', is_required=False), DateTimeField('timestamp', field_uri='TimeStamp'), IdAndChangekeyField('parent_folder_id', field_uri='ParentFolderId', is_required=True, is_attribute=False), IntegerField('unread_count', field_uri='UnreadCount', is_read_only=True), ] __slots__ = ('watermark', 'timestamp', 'parent_folder_id', 'unread_count')
class DeleteFolderChange(FolderChange): FIELDS = [ IdAndChangekeyField('item_id', field_uri='FolderId'), ] __slots__ = ('item_id', ) ELEMENT_NAME = 'Delete'
class DeleteItemChange(ItemChange): ELEMENT_NAME = 'Delete' FIELDS = [ IdAndChangekeyField('item_id', field_uri='ItemId'), ] __slots__ = ('item_id', )
class FolderDeletedEvent(DeletedEvent): FIELDS = DeletedEvent.FIELDS + [ IdAndChangekeyField('folder_id', field_uri='FolderId', is_required=True, is_attribute=False), ] __slots__ = DeletedEvent.__slots__ + ('folder_id',)
class ItemDeletedEvent(DeletedEvent): FIELDS = DeletedEvent.FIELDS + [ IdAndChangekeyField('item_id', field_uri='ItemId', is_required=True, is_attribute=False), ] __slots__ = DeletedEvent.__slots__ + ('item_id',)
class ItemCopiedEvent(CopiedEvent): FIELDS = CopiedEvent.FIELDS + [ IdAndChangekeyField('item_id', field_uri='ItemId', is_required=True, is_attribute=False), IdAndChangekeyField('old_item_id', field_uri='OldItemId', is_required=True, is_attribute=False), ] __slots__ = CopiedEvent.__slots__ + ('item_id', 'old_item_id')
class FolderCopiedEvent(CopiedEvent): FIELDS = CopiedEvent.FIELDS + [ IdAndChangekeyField('folder_id', field_uri='FolderId', is_required=True, is_attribute=False), IdAndChangekeyField('old_folder_id', field_uri='OldFolderId', is_required=True, is_attribute=False), ] __slots__ = CopiedEvent.__slots__ + ('folder_id', 'old_folder_id')