Example #1
0
 public async Task UpdateCustomFormat(ProcessedCustomFormatData cf)
 {
     await BuildRequest()
     .AppendPathSegment($"customformat/{cf.GetCustomFormatId()}")
     .PutJsonAsync(cf.Json)
     .ReceiveJson <JObject>();
 }
Example #2
0
        public async Task CreateCustomFormat(ProcessedCustomFormatData cf)
        {
            var response = await BaseUrl
                           .AppendPathSegment("customformat")
                           .PostJsonAsync(cf.Json)
                           .ReceiveJson <JObject>();

            cf.SetCache((int)response["id"]);
        }
Example #3
0
    public async Task CreateCustomFormat(ProcessedCustomFormatData cf)
    {
        var response = await BuildRequest()
                       .AppendPathSegment("customformat")
                       .PostJsonAsync(cf.Json)
                       .ReceiveJson <JObject>();

        if (response != null)
        {
            cf.SetCache(response.Value <int>("id"));
        }
    }