| 1 | package mailboxscip-go gomod git.sr.ht/~rockorager/go-jmap . `git.sr.ht/~rockorager/go-jmap/mail/mailbox`/ |
| 2 | |
| 3 | import ( |
| 4 | "git.sr.ht/~rockorager/go-jmapscip-go gomod git.sr.ht/~rockorager/go-jmap . `git.sr.ht/~rockorager/go-jmap`/" |
| 5 | "git.sr.ht/~rockorager/go-jmap/mailscip-go gomod git.sr.ht/~rockorager/go-jmap . `git.sr.ht/~rockorager/go-jmap/mail`/" |
| 6 | ) |
| 7 | |
| 8 | // Get mailbox changes for the whole account |
| 9 | // https://www.rfc-editor.org/rfc/rfc8621.html#section-2.2 |
| 10 | type Changesscip-go gomod git.sr.ht/~rockorager/go-jmap . `git.sr.ht/~rockorager/go-jmap/mail/mailbox`/Changes# struct { |
| 11 | Accountscip-go gomod git.sr.ht/~rockorager/go-jmap . `git.sr.ht/~rockorager/go-jmap/mail/mailbox`/Changes#Account. jmapscip-go gomod git.sr.ht/~rockorager/go-jmap . `git.sr.ht/~rockorager/go-jmap`/.IDscip-go gomod git.sr.ht/~rockorager/go-jmap . `git.sr.ht/~rockorager/go-jmap`/ID# `json:"accountId,omitempty"` |
| 12 | |
| 13 | SinceStatescip-go gomod git.sr.ht/~rockorager/go-jmap . `git.sr.ht/~rockorager/go-jmap/mail/mailbox`/Changes#SinceState. string `json:"sinceState,omitempty"` |
| 14 | |
| 15 | MaxChangesscip-go gomod git.sr.ht/~rockorager/go-jmap . `git.sr.ht/~rockorager/go-jmap/mail/mailbox`/Changes#MaxChanges. uint64 `json:"maxChanges,omitempty"` |
| 16 | } |
| 17 | |
| 18 | func (m *Changesscip-go gomod git.sr.ht/~rockorager/go-jmap . `git.sr.ht/~rockorager/go-jmap/mail/mailbox`/Changes#) Namescip-go gomod git.sr.ht/~rockorager/go-jmap . `git.sr.ht/~rockorager/go-jmap/mail/mailbox`/Changes#Name().() string { return "Mailbox/changes" } |
| 19 | |
| 20 | func (m *Changesscip-go gomod git.sr.ht/~rockorager/go-jmap . `git.sr.ht/~rockorager/go-jmap/mail/mailbox`/Changes#) Requiresscip-go gomod git.sr.ht/~rockorager/go-jmap . `git.sr.ht/~rockorager/go-jmap/mail/mailbox`/Changes#Requires().() []jmapscip-go gomod git.sr.ht/~rockorager/go-jmap . `git.sr.ht/~rockorager/go-jmap`/.URIscip-go gomod git.sr.ht/~rockorager/go-jmap . `git.sr.ht/~rockorager/go-jmap`/URI# { return []jmapscip-go gomod git.sr.ht/~rockorager/go-jmap . `git.sr.ht/~rockorager/go-jmap`/.URIscip-go gomod git.sr.ht/~rockorager/go-jmap . `git.sr.ht/~rockorager/go-jmap`/URI#{mailscip-go gomod git.sr.ht/~rockorager/go-jmap . `git.sr.ht/~rockorager/go-jmap/mail`/.URIscip-go gomod git.sr.ht/~rockorager/go-jmap . `git.sr.ht/~rockorager/go-jmap/mail`/URI.} } |
| 21 | |
| 22 | type ChangesResponsescip-go gomod git.sr.ht/~rockorager/go-jmap . `git.sr.ht/~rockorager/go-jmap/mail/mailbox`/ChangesResponse# struct { |
| 23 | Accountscip-go gomod git.sr.ht/~rockorager/go-jmap . `git.sr.ht/~rockorager/go-jmap/mail/mailbox`/ChangesResponse#Account. jmapscip-go gomod git.sr.ht/~rockorager/go-jmap . `git.sr.ht/~rockorager/go-jmap`/.IDscip-go gomod git.sr.ht/~rockorager/go-jmap . `git.sr.ht/~rockorager/go-jmap`/ID# `json:"accountId,omitempty"` |
| 24 | |
| 25 | OldStatescip-go gomod git.sr.ht/~rockorager/go-jmap . `git.sr.ht/~rockorager/go-jmap/mail/mailbox`/ChangesResponse#OldState. string `json:"oldState,omitempty"` |
| 26 | |
| 27 | NewStatescip-go gomod git.sr.ht/~rockorager/go-jmap . `git.sr.ht/~rockorager/go-jmap/mail/mailbox`/ChangesResponse#NewState. string `json:"newState,omitempty"` |
| 28 | |
| 29 | HasMoreChangesscip-go gomod git.sr.ht/~rockorager/go-jmap . `git.sr.ht/~rockorager/go-jmap/mail/mailbox`/ChangesResponse#HasMoreChanges. bool `json:"hasMoreChanges,omitempty"` |
| 30 | |
| 31 | Createdscip-go gomod git.sr.ht/~rockorager/go-jmap . `git.sr.ht/~rockorager/go-jmap/mail/mailbox`/ChangesResponse#Created. []jmapscip-go gomod git.sr.ht/~rockorager/go-jmap . `git.sr.ht/~rockorager/go-jmap`/.IDscip-go gomod git.sr.ht/~rockorager/go-jmap . `git.sr.ht/~rockorager/go-jmap`/ID# `json:"created,omitempty"` |
| 32 | |
| 33 | Updatedscip-go gomod git.sr.ht/~rockorager/go-jmap . `git.sr.ht/~rockorager/go-jmap/mail/mailbox`/ChangesResponse#Updated. []jmapscip-go gomod git.sr.ht/~rockorager/go-jmap . `git.sr.ht/~rockorager/go-jmap`/.IDscip-go gomod git.sr.ht/~rockorager/go-jmap . `git.sr.ht/~rockorager/go-jmap`/ID# `json:"updated,omitempty"` |
| 34 | |
| 35 | Destroyedscip-go gomod git.sr.ht/~rockorager/go-jmap . `git.sr.ht/~rockorager/go-jmap/mail/mailbox`/ChangesResponse#Destroyed. []jmapscip-go gomod git.sr.ht/~rockorager/go-jmap . `git.sr.ht/~rockorager/go-jmap`/.IDscip-go gomod git.sr.ht/~rockorager/go-jmap . `git.sr.ht/~rockorager/go-jmap`/ID# `json:"destroyed,omitempty"` |
| 36 | |
| 37 | UpdatedPropertiesscip-go gomod git.sr.ht/~rockorager/go-jmap . `git.sr.ht/~rockorager/go-jmap/mail/mailbox`/ChangesResponse#UpdatedProperties. []string `json:"updatedProperties,omitempty"` |
| 38 | } |
| 39 | |
| 40 | func newChangesResponsescip-go gomod git.sr.ht/~rockorager/go-jmap . `git.sr.ht/~rockorager/go-jmap/mail/mailbox`/newChangesResponse().() jmapscip-go gomod git.sr.ht/~rockorager/go-jmap . `git.sr.ht/~rockorager/go-jmap`/.MethodResponsescip-go gomod git.sr.ht/~rockorager/go-jmap . `git.sr.ht/~rockorager/go-jmap`/MethodResponse# { return &ChangesResponsescip-go gomod git.sr.ht/~rockorager/go-jmap . `git.sr.ht/~rockorager/go-jmap/mail/mailbox`/ChangesResponse#{} } |