Exemple #1
0
        private void btnSendArtisanRequest_Click(object sender, RoutedEventArgs e)
        {
            tbJsonResponse.Clear();
            ArtisanInfo artisanInfoResponse = DiabloService.GetArtisanInfo(RequestParameters.REGIONS.EU, RequestParameters.ARTISANS.BLACKSMITH, "en_GB", tbApiKey.Text);
            string      output = JsonConvert.SerializeObject(artisanInfoResponse, Formatting.Indented, new JsonSerializerSettings {
                NullValueHandling = NullValueHandling.Ignore
            });

            tbJsonResponse.Text = output;
        }