Exemplo n.º 1
0
        public async Task CreateCustomFormat(ProcessedCustomFormatData cf)
        {
            var response = await BaseUrl
                           .AppendPathSegment("customformat")
                           .PostJsonAsync(cf.Json)
                           .ReceiveJson <JObject>();

            cf.SetCache((int)response["id"]);
        }
Exemplo n.º 2
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"));
        }
    }