public static class ParameterUtilsUtility class for iterating on RequestParameterAttribute properties in a request object.
Namespace
GoogleApisRequestsParametersAssembly
Google.Apis.Core.dll
Methods
CreateFormUrlEncodedContent(object)
public static FormUrlEncodedContent CreateFormUrlEncodedContent(object request)Creates a System.Net.Http.FormUrlEncodedContent with all the specified parameters in the input request. It uses reflection to iterate over all properties with RequestParameterAttribute attribute.
| Parameter | |
|---|---|
| Name | Description | 
request | 
        objectA request object which contains properties with RequestParameterAttribute attribute. Those properties will be serialized to the returned System.Net.Http.FormUrlEncodedContent.  | 
      
| Returns | |
|---|---|
| Type | Description | 
System.Net.Http.FormUrlEncodedContent | 
        A System.Net.Http.FormUrlEncodedContent which contains the all the given object required values.  | 
      
CreateParameterDictionary(object)
public static IDictionary<string, object> CreateParameterDictionary(object request)Creates a parameter dictionary by using reflection to iterate over all properties with RequestParameterAttribute attribute.
| Parameter | |
|---|---|
| Name | Description | 
request | 
        objectA request object which contains properties with RequestParameterAttribute attribute. Those properties will be set in the output dictionary.  | 
      
| Returns | |
|---|---|
| Type | Description | 
IDictionarystringobject | 
        |
InitParameters(RequestBuilder, object)
public static void InitParameters(RequestBuilder builder, object request)Sets query parameters in the given builder with all all properties with the RequestParameterAttribute attribute.
| Parameters | |
|---|---|
| Name | Description | 
builder | 
        RequestBuilderThe request builder  | 
      
request | 
        objectA request object which contains properties with RequestParameterAttribute attribute. Those properties will be set in the given request builder object  |