File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -175,15 +175,15 @@ public interface IRestRequest
175
175
IRestRequest AddBody ( object obj ) ;
176
176
177
177
/// <summary>
178
- /// Calls AddParameter() for all public, readable properties specified in the white list
178
+ /// Calls AddParameter() for all public, readable properties specified in the includedProperties list
179
179
/// </summary>
180
180
/// <example>
181
181
/// request.AddObject(product, "ProductId", "Price", ...);
182
182
/// </example>
183
183
/// <param name="obj">The object with properties to add as parameters</param>
184
- /// <param name="whitelist ">The names of the properties to include</param>
184
+ /// <param name="includedProperties ">The names of the properties to include</param>
185
185
/// <returns>This request</returns>
186
- IRestRequest AddObject ( object obj , params string [ ] whitelist ) ;
186
+ IRestRequest AddObject ( object obj , string [ ] includedProperties ) ;
187
187
188
188
/// <summary>
189
189
/// Calls AddParameter() for all public, readable properties of obj
Original file line number Diff line number Diff line change @@ -252,23 +252,23 @@ public IRestRequest AddBody (object obj)
252
252
}
253
253
254
254
/// <summary>
255
- /// Calls AddParameter() for all public, readable properties specified in the white list
255
+ /// Calls AddParameter() for all public, readable properties specified in the includedProperties list
256
256
/// </summary>
257
257
/// <example>
258
258
/// request.AddObject(product, "ProductId", "Price", ...);
259
259
/// </example>
260
260
/// <param name="obj">The object with properties to add as parameters</param>
261
- /// <param name="whitelist ">The names of the properties to include</param>
261
+ /// <param name="includedProperties ">The names of the properties to include</param>
262
262
/// <returns>This request</returns>
263
- public IRestRequest AddObject ( object obj , params string [ ] whitelist )
263
+ public IRestRequest AddObject ( object obj , string [ ] includedProperties )
264
264
{
265
265
// automatically create parameters from object props
266
266
var type = obj . GetType ( ) ;
267
267
var props = type . GetProperties ( ) ;
268
268
269
269
foreach ( var prop in props )
270
270
{
271
- bool isAllowed = whitelist . Length == 0 || ( whitelist . Length > 0 && whitelist . Contains ( prop . Name ) ) ;
271
+ bool isAllowed = includedProperties . Length == 0 || ( includedProperties . Length > 0 && includedProperties . Contains ( prop . Name ) ) ;
272
272
273
273
if ( isAllowed )
274
274
{
You can’t perform that action at this time.
0 commit comments