Beispiel #1
0
 public async Task<IndividualTargetResponse> UpdateTargetAsync(BaseTarget target)
 {
     var body = new { target };
     return await GenericPutAsync<IndividualTargetResponse>(string.Format("targets/{0}.json", target.Id), body);
 }
Beispiel #2
0
 public IndividualTargetResponse UpdateTarget(BaseTarget target)
 {
     var body = new { target };
     return GenericPut<IndividualTargetResponse>(string.Format("targets/{0}.json", target.Id), body);
 }
Beispiel #3
0
 public async Task<IndividualTargetResponse> CreateTargetAsync(BaseTarget target)
 {
     var body = new { target };
     return await GenericPostAsync<IndividualTargetResponse>("targets.json", body);
 }
Beispiel #4
0
 public IndividualTargetResponse CreateTarget(BaseTarget target)
 {
     var body = new { target };
     return GenericPost<IndividualTargetResponse>("targets.json", body);
 }