

insightly-api
@ 15
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
using System.Collections.Generic; using TS.Insightly.API.Contract; namespace TS.Insightly.API.Interface { /// <summary> /// Interface for Organisations access via the API. /// </summary> internal interface IOrganisationController { /// <summary> /// Gets the organisation for the unique organisation ID. /// Note that the Id is not the Id shown for the organisation in the web browser, but /// the organisation Id that is unique to insightly. /// </summary> /// <param name="organisationId">The organisation unique identifier.</param> /// <returns>The organisation for the given id.</returns> Organisation GetOrganisation(int organisationId); /// <summary> /// Gets organisations. /// </summary> /// <param name="fullDetails">if set to <c>true</c> return full details.</param> /// <returns>All organisations.</returns> List<Organisation> GetOrganisations(bool fullDetails); /// <summary> /// Gets organisations matching the given name. /// </summary> /// <param name="orgName">Name of the org to find.</param> /// <returns>List of organisations (basic details) matching the given name.</returns> List<Organisation> GetOrganisationsForName(string orgName); /// <summary> /// Adds the new organisation. /// </summary> /// <param name="newOrganisation">The new organisation.</param> /// <returns>The added organisation if successful.</returns> Organisation AddNewOrganisation(Organisation newOrganisation); /// <summary> /// Deletes the organisation. /// Note that the Id is not the Id shown for the organisation in the web browser, but /// the organisation Id that is unique to insightly. /// </summary> /// <param name="organisationId">The organisation unique identifier.</param> /// <returns><code>true</code> If the organisation was deleted.</returns> bool DeleteOrganisation(int organisationId); } } |
Commits for insightly-api/trunk/Insightly/Interface/IOrganisationController.cs
Revision | Author | Commited | Message |
---|---|---|---|
15 |
|
Tue 01 Oct, 2013 13:47:15 +0000 | Refactored, added Ninject to load controllers for each part of the API. |