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)));
 }
Exemplo n.º 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()));
 }
Exemplo n.º 5
0
 public Task <Organization> Get(long id)
 {
     return(ApiConnection.Get <Organization>(ApiUrls.Organization(id)));
 }
Exemplo n.º 6
0
        public Task <Organization> Edit(long id, OrganizationUpdate data)
        {
            Ensure.ArgumentNotNull(data, nameof(data));

            return(ApiConnection.Put <Organization>(ApiUrls.Organization(id), data));
        }
Exemplo n.º 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)));
 }
Exemplo n.º 9
0
 public Task <File> Get(long id)
 {
     return(ApiConnection.Get <File>(ApiUrls.File(id)));
 }
Exemplo n.º 10
0
 public Task <IReadOnlyList <Stage> > GetAll()
 {
     return(ApiConnection.GetAll <Stage>(ApiUrls.Stages()));
 }
Exemplo n.º 11
0
 public Task Delete(long id)
 {
     return(ApiConnection.Delete(ApiUrls.Pipeline(id)));
 }
Exemplo n.º 12
0
        public Task <Pipeline> Edit(long id, PipelineUpdate data)
        {
            Ensure.ArgumentNotNull(data, nameof(data));

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

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

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

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

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

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