Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reference result in subsequent method argument
This change adds a mechanism to allow you to reference the result of a previous method call as an argument to a subsequent method call in the same request. This allows us to remove quite a lot of special cases and simplifies serveral methods, while giving you more power overall. The semantic changes can be summarised as follows: * getFooUpdates no longer takes fetchRecords/fetchRecordProperties arguments. This is no longer needed, because you can achieve the same using a result-reference argument. * getFooList no longer takes fetchRecords/fetchRecordProperties arguments, for the same reason. * The fooList response "fooIds" argument has been renamed to just "ids", so the type name is only in the method name, not in any of the arguments, consistent with the other methods. In addition to the standard changes inherited from core, Mail has the following changes: * The mailboxUpdates response "onlyCountsChanged" argument is now called "changedProperties", and it's value is the list of property name that may have changed rather than a boolean. This is to allow it to be used via a response-reference for a getMailboxes "properties" argument. * The messageSubmissionList response no longer has threadIds/messageIds arguments, because you can achieve the same using a result-reference argument to fetch just these properties for the results in a getMessageSubmissions call. * The messageList response is a standard fooList response so just has an "ids" argument (with message ids) rather than messageIds/threadIds arguments. If you need the thread ids, you can do a getMessages call, with a properties argument of just `[ "threadIds" ]` and an ids argument that's a result reference to the messageList ids response. * Similarly, in the messageListUpdates response, the removed/added arguments follow the standard fooList pattern and just contain the message ids, not the thread ids.
- Loading branch information
Showing
6 changed files
with
220 additions
and
200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.