Guest User

Untitled

a guest
Feb 17th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.47 KB | None | 0 0
  1. namespace Countries.Models
  2. {
  3. using System.Collections.Generic;
  4. using Newtonsoft.Json;
  5.  
  6. public class Countries
  7. {
  8. [JsonProperty(PropertyName = "name")]
  9. public string Name { get; set; }
  10.  
  11. [JsonProperty(PropertyName = "topLevelDomain")]
  12. public List<string> TopLevelDomain { get; set; }
  13.  
  14. [JsonProperty(PropertyName = "alpha2Code")]
  15. public string Alpha2Code { get; set; }
  16.  
  17. [JsonProperty(PropertyName = "alpha3Code")]
  18. public string Alpha3Code { get; set; }
  19.  
  20. [JsonProperty(PropertyName = "callingCodes")]
  21. public List<string> CallingCodes { get; set; }
  22.  
  23. [JsonProperty(PropertyName = "capital")]
  24. public string Capital { get; set; }
  25.  
  26. [JsonProperty(PropertyName = "altSpellings")]
  27. public List<string> AltSpellings { get; set; }
  28.  
  29. [JsonProperty(PropertyName = "region")]
  30. public string Region { get; set; }
  31.  
  32. [JsonProperty(PropertyName = "subregion")]
  33. public string Subregion { get; set; }
  34.  
  35. [JsonProperty(PropertyName = "population")]
  36. public int Population { get; set; }
  37.  
  38. [JsonProperty(PropertyName = "latlng")]
  39. public List<double> Latlng { get; set; }
  40.  
  41. [JsonProperty(PropertyName = "demonym")]
  42. public string Demonym { get; set; }
  43.  
  44. [JsonProperty(PropertyName = "area")]
  45. public double? Area { get; set; }
  46.  
  47. [JsonProperty(PropertyName = "gini")]
  48. public double? Gini { get; set; }
  49.  
  50. [JsonProperty(PropertyName = "timezones")]
  51. public List<string> Timezones { get; set; }
  52.  
  53. [JsonProperty(PropertyName = "borders")]
  54. public List<string> Borders { get; set; }
  55.  
  56. [JsonProperty(PropertyName = "nativeName")]
  57. public string NativeName { get; set; }
  58.  
  59. [JsonProperty(PropertyName = "numericCode")]
  60. public string NumericCode { get; set; }
  61.  
  62. [JsonProperty(PropertyName = "currencies")]
  63. public List<Currency> Currencies { get; set; }
  64.  
  65. [JsonProperty(PropertyName = "languages")]
  66. public List<Language> Languages { get; set; }
  67.  
  68. [JsonProperty(PropertyName = "translations")]
  69. public Translations Translations { get; set; }
  70.  
  71. [JsonProperty(PropertyName = "flag")]
  72. public string Flag { get; set; }
  73.  
  74. [JsonProperty(PropertyName = "regionalBlocs")]
  75. public List<RegionalBloc> RegionalBlocs { get; set; }
  76.  
  77. [JsonProperty(PropertyName = "cioc")]
  78. public string Cioc { get; set; }
  79. }
  80. }
Add Comment
Please, Sign In to add comment