Beispiel #1
0
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')
Beispiel #2
0
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')
Beispiel #3
0
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")
Beispiel #4
0
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')
Beispiel #5
0
class DeleteFolderChange(FolderChange):
    FIELDS = [
        IdAndChangekeyField('item_id', field_uri='FolderId'),
    ]
    __slots__ = ('item_id', )
    ELEMENT_NAME = 'Delete'
Beispiel #6
0
class DeleteItemChange(ItemChange):
    ELEMENT_NAME = 'Delete'
    FIELDS = [
        IdAndChangekeyField('item_id', field_uri='ItemId'),
    ]
    __slots__ = ('item_id', )
Beispiel #7
0
class FolderDeletedEvent(DeletedEvent):
    FIELDS = DeletedEvent.FIELDS + [
        IdAndChangekeyField('folder_id', field_uri='FolderId', is_required=True, is_attribute=False),
    ]
    __slots__ = DeletedEvent.__slots__ + ('folder_id',)
Beispiel #8
0
class ItemDeletedEvent(DeletedEvent):
    FIELDS = DeletedEvent.FIELDS + [
        IdAndChangekeyField('item_id', field_uri='ItemId', is_required=True, is_attribute=False),
    ]
    __slots__ = DeletedEvent.__slots__ + ('item_id',)
Beispiel #9
0
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')
Beispiel #10
0
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')