Merge lp:~elementary-apps/granite/document-contract-interface into lp:~elementary-pantheon/granite/granite
Proposed by
Sergey "Shnatsel" Davidoff
Status: | Merged |
---|---|
Approved by: | Victor Martinez |
Approved revision: | 717 |
Merged at revision: | 716 |
Proposed branch: | lp:~elementary-apps/granite/document-contract-interface |
Merge into: | lp:~elementary-pantheon/granite/granite |
Diff against target: |
61 lines (+40/-0) 1 file modified
lib/Services/ContractorProxy.vala (+40/-0) |
To merge this branch: | bzr merge lp:~elementary-apps/granite/document-contract-interface |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Victor Martinez (community) | Approve | ||
Review via email: mp+214846@code.launchpad.net |
Commit message
Documentation: Add descriptions for Granite.
Description of the change
Document Granite.
To post a comment you must log in.
Great work!
The description for the Contract interface isn't very accurate. As the API is quite self-describing, it'd be better to keep it simple. For example:
"Interface for accessing contract actions and properties." instead of "Opaque object representing a Contractor action".
We could simply avoid "Returned by" as it's rarely used in Vala documentation and you'd have to list every method of ContractorProxy returning such objects.
That said, you've done a great job documenting the methods of the Contract interface and you're also providing proper guidance on handling ContractorError .SERVICE_ NOT_AVAILABLE.