@@ -116,7 +116,7 @@ public interface IIPDataClient
116116 Task < Threat > Threat ( string ip ) ;
117117
118118 /// <summary>Fetch IP info for your IP.</summary>
119- /// <returns>The IP info <see cref="Models.IPInfo ">.</returns>
119+ /// <returns>The IP info <see cref="Models.IPLookupResult ">.</returns>
120120 /// <exception cref="Exceptions.BadRequestException">
121121 /// Thrown when IP address is private or invalid.
122122 /// </exception>
@@ -129,11 +129,11 @@ public interface IIPDataClient
129129 /// <exception cref="Exceptions.ApiException">
130130 /// Thrown when unexpected case occurred.
131131 /// </exception>
132- Task < IPInfo > Lookup ( ) ;
132+ Task < IPLookupResult > Lookup ( ) ;
133133
134134 /// <summary>Fetch localized IP info for your IP.</summary>
135135 /// <param name="culture">The culture info.</param>
136- /// <returns>Localized IP info <see cref="IPInfo "/></returns>
136+ /// <returns>Localized IP info <see cref="IPLookupResult "/></returns>
137137 /// <exception cref="Exceptions.BadRequestException">
138138 /// Thrown when IP address is private or invalid.
139139 /// </exception>
@@ -151,11 +151,11 @@ public interface IIPDataClient
151151 /// Lookup(CultureInfo.GetCultureInfo("zh-CN"));
152152 /// </code>
153153 /// </example>
154- Task < IPInfo > Lookup ( CultureInfo culture ) ;
154+ Task < IPLookupResult > Lookup ( CultureInfo culture ) ;
155155
156156 /// <summary>Fetch IP info for few IPs.</summary>
157157 /// <param name="ips">The list of IPv4 addresses.</param>
158- /// <returns>The list of IP info <see cref="IPInfo "/>.</returns>
158+ /// <returns>The list of IP info <see cref="IPLookupResult "/>.</returns>
159159 /// <exception cref="Exceptions.BadRequestException">
160160 /// Thrown when IP address is private or invalid.
161161 /// </exception>
@@ -168,7 +168,7 @@ public interface IIPDataClient
168168 /// <exception cref="Exceptions.ApiException">
169169 /// Thrown when unexpected case occurred.
170170 /// </exception>
171- Task < IEnumerable < IPInfo > > Lookup ( IReadOnlyCollection < string > ips ) ;
171+ Task < IEnumerable < IPLookupResult > > Lookup ( IReadOnlyCollection < string > ips ) ;
172172
173173 /// <summary>Fetch IP info for IPv4 address.</summary>
174174 /// <param name="ip">The IPv4 Address.</param>
@@ -185,12 +185,12 @@ public interface IIPDataClient
185185 /// <exception cref="Exceptions.ApiException">
186186 /// Thrown when unexpected case occurred.
187187 /// </exception>
188- Task < IPInfo > Lookup ( string ip ) ;
188+ Task < IPLookupResult > Lookup ( string ip ) ;
189189
190190 /// <summary>Fetch localized IP info for IPv4 address.</summary>
191191 /// <param name="ip">The IPv4 address.</param>
192192 /// <param name="culture">The culture info.</param>
193- /// <returns>Localized IP info <see cref="IPInfo "/>.</returns>
193+ /// <returns>Localized IP info <see cref="IPLookupResult "/>.</returns>
194194 /// <exception cref="Exceptions.BadRequestException">
195195 /// Thrown when IP address is private or invalid.
196196 /// </exception>
@@ -208,7 +208,7 @@ public interface IIPDataClient
208208 /// Lookup("8.8.8.8", CultureInfo.GetCultureInfo("zh-CN"));
209209 /// </code>
210210 /// </example>
211- Task < IPInfo > Lookup ( string ip , CultureInfo culture ) ;
211+ Task < IPLookupResult > Lookup ( string ip , CultureInfo culture ) ;
212212
213213 /// <summary>Fetch single IP info fields from IPv4 address.</summary>
214214 /// <param name="ip">The IPv4 address.</param>
@@ -231,7 +231,7 @@ public interface IIPDataClient
231231 /// Lookup("8.8.8.8", x => x.CountryName);
232232 /// </code>
233233 /// </example>
234- Task < string > Lookup ( string ip , Expression < Func < IPInfo , object > > fieldSelector ) ;
234+ Task < string > Lookup ( string ip , Expression < Func < IPLookupResult , object > > fieldSelector ) ;
235235
236236 /// <summary>Fetch multiple IP info fields from IPv4 address.</summary>
237237 /// <param name="ip">The IPv4 address.</param>
@@ -254,6 +254,6 @@ public interface IIPDataClient
254254 /// Lookup("8.8.8.8", x => x.CountryName, x => x.City);
255255 /// </code>
256256 /// </example>
257- Task < IPInfo > Lookup ( string ip , params Expression < Func < IPInfo , object > > [ ] fieldSelectors ) ;
257+ Task < IPLookupResult > Lookup ( string ip , params Expression < Func < IPLookupResult , object > > [ ] fieldSelectors ) ;
258258 }
259259}
0 commit comments