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

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

            return(ApiConnection.Put <Pipeline>(ApiUrls.Pipeline(id), data));
        }
示例#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)));
 }
示例#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)));
 }
示例#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));
        }
示例#19
0
 public Task Delete(long id)
 {
     return(ApiConnection.Delete(ApiUrls.Stage(id)));
 }
示例#20
0
        public Task <Organization> Create(NewOrganization data)
        {
            Ensure.ArgumentNotNull(data, nameof(data));

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