public Task <Webhook> Create(NewWebhook data)
        {
            Ensure.ArgumentNotNull(data, nameof(data));

            return(ApiConnection.Post <Webhook>(ApiUrls.Webhooks(), data));
        }
 public Task Delete(long id)
 {
     return(ApiConnection.Delete(ApiUrls.Webhook(id)));
 }
Example #3
0
 public Task <Pipeline> Get(long id)
 {
     return(ApiConnection.Get <Pipeline>(ApiUrls.Pipeline(id)));
 }
 public Task <IReadOnlyList <Webhook> > GetAll()
 {
     return(ApiConnection.GetAll <Webhook>(ApiUrls.Webhooks()));
 }
Example #5
0
 public Task <Organization> Get(long id)
 {
     return(ApiConnection.Get <Organization>(ApiUrls.Organization(id)));
 }
Example #6
0
        public Task <Organization> Edit(long id, OrganizationUpdate data)
        {
            Ensure.ArgumentNotNull(data, nameof(data));

            return(ApiConnection.Put <Organization>(ApiUrls.Organization(id), data));
        }
Example #7
0
 public Task <Stage> Get(long id)
 {
     return(ApiConnection.Get <Stage>(ApiUrls.Stage(id)));
 }
 public Task <Person> Get(long id)
 {
     return(ApiConnection.Get <Person>(ApiUrls.Person(id)));
 }
Example #9
0
 public Task <File> Get(long id)
 {
     return(ApiConnection.Get <File>(ApiUrls.File(id)));
 }
Example #10
0
 public Task <IReadOnlyList <Stage> > GetAll()
 {
     return(ApiConnection.GetAll <Stage>(ApiUrls.Stages()));
 }
Example #11
0
 public Task Delete(long id)
 {
     return(ApiConnection.Delete(ApiUrls.Pipeline(id)));
 }
Example #12
0
        public Task <Pipeline> Edit(long id, PipelineUpdate data)
        {
            Ensure.ArgumentNotNull(data, nameof(data));

            return(ApiConnection.Put <Pipeline>(ApiUrls.Pipeline(id), data));
        }
Example #13
0
        public Task <Pipeline> Create(NewPipeline data)
        {
            Ensure.ArgumentNotNull(data, nameof(data));

            return(ApiConnection.Post <Pipeline>(ApiUrls.Pipelines(), data));
        }
 public Task Delete(long id)
 {
     return(ApiConnection.Delete(ApiUrls.Person(id)));
 }
Example #15
0
        public Task <Stage> Create(NewStage data)
        {
            Ensure.ArgumentNotNull(data, nameof(data));

            return(ApiConnection.Post <Stage>(ApiUrls.Stages(), data));
        }
 public Task DeleteFollower(long dealId, long followerId)
 {
     return(ApiConnection.Delete(ApiUrls.DeletePersonFollower(dealId, followerId)));
 }
Example #17
0
        public Task <Stage> Edit(long id, StageUpdate data)
        {
            Ensure.ArgumentNotNull(data, nameof(data));

            return(ApiConnection.Put <Stage>(ApiUrls.Stage(id), data));
        }
        public Task <Person> Create(NewPerson data)
        {
            Ensure.ArgumentNotNull(data, nameof(data));

            return(ApiConnection.Post <Person>(ApiUrls.Persons(), data));
        }
Example #19
0
 public Task Delete(long id)
 {
     return(ApiConnection.Delete(ApiUrls.Stage(id)));
 }
Example #20
0
        public Task <Organization> Create(NewOrganization data)
        {
            Ensure.ArgumentNotNull(data, nameof(data));

            return(ApiConnection.Post <Organization>(ApiUrls.Organizations(), data));
        }
Example #21
0
 public Task <IReadOnlyList <Currency> > GetAll()
 {
     return(ApiConnection.GetAll <Currency>(ApiUrls.Currencies()));
 }
Example #22
0
 public Task Delete(long id)
 {
     return(ApiConnection.Delete(ApiUrls.Organization(id)));
 }
Example #23
0
 public Task <IReadOnlyList <Pipeline> > GetAll()
 {
     return(ApiConnection.GetAll <Pipeline>(ApiUrls.Pipelines()));
 }