public static class ParameterUtils : objectUtility class for iterating on RequestParameterAttribute properties in a request object.
Namespace
Google.Apis.Requests.ParametersAssembly
Google.Apis.Core.dll
Methods
CreateFormUrlEncodedContent(Object)
public static FormUrlEncodedContent CreateFormUrlEncodedContent(object request)Creates a 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 .  | 
      
| Returns | |
|---|---|
| Type | Description | 
FormUrlEncodedContent | 
        A 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 | 
IDictionary<String, Object> | 
        |
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  |