sync-collection for client

This commit is contained in:
AlmogBaku
2020-03-29 15:08:48 +03:00
committed by Simon Ser
parent 25df841e2b
commit 9e23289610
4 changed files with 105 additions and 0 deletions

View File

@@ -99,3 +99,17 @@ type AddressObject struct {
ETag string
Card vcard.Card
}
//SyncQuery is the query struct represents a sync-collection request
type SyncQuery struct {
DataRequest AddressDataRequest
SyncToken string
Limit int // <= 0 means unlimited
}
//SyncResponse contains the returned sync-token for next time
type SyncResponse struct {
SyncToken string
Updated []AddressObject
Deleted []string
}