1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- using System.Collections.Generic;
- using Newtonsoft.Json;
- namespace IPLocationServerTool.Services
- {
- /// <summary>
- /// Ip Location server and areas
- /// </summary>
- public class IpLocation
- {
- public string ServerAdress { get; set; }
- public List<Continent> Areas { get; set; }
- }
- /// <summary>
- /// Continent
- /// </summary>
- public class Continent
- {
- public string Name { get; set; }
- public string Code { get; set; }
- [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
- public List<Country> Countrys { get; set; }
- }
- /// <summary>
- /// Country name
- /// </summary>
- public class Country
- {
- public string Name { get; set; }
- public string Code { get; set; }
- [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
- public List<State> States { get; set; }
- public Country()
- {
- States = new List<State>();
- }
- }
- /// <summary>
- /// State name
- /// </summary>
- public class State
- {
- public string Name { get; set; }
- public string Code { get; set; }
- [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
- public List<City> Cities { get; set; }
- public State()
- {
- Cities = new List<City>();
- }
- }
- /// <summary>
- /// City
- /// </summary>
- public class City
- {
- public string Name { get; set; }
- public string Code { get; set; }
- public City()
- {
- }
- }
- }
|