internal static IpV6Client CreateIpV4Client(IIpV6Client data) { if (data == null) { return(null); } var result = new IpV6Client { IpV6 = data.IpV6, }; if (data.Continent != null) { result.Continent = CreateContinent(data.Continent); } if (data.County != null) { result.County = CreateCounty(data.County); } if (data.City != null) { result.City = CreateCity(data.City); } return(result); }
public static IpClientModel CreateIpClient(IIpV6Client ipV6Client) { var result = new IpClientModel { IpV6 = ipV6Client.IpV6, }; if (ipV6Client.Continent != null) { result.Continent = CreateContinent(ipV6Client.Continent); } if (ipV6Client.County != null) { result.County = CreateCountry(ipV6Client.County); } if (ipV6Client.City != null) { result.City = CreateCity(ipV6Client.City); } return(result); }