Ejemplo n.º 1
0
 /// <summary>
 /// Add a single parameter to the query
 /// </summary>
 /// <param name="name">the name of the parameter</param>
 /// <param name="value">the value of the parameter</param>
 /// <returns>this query</returns>
 public QueryParameters Add(string name, UnsubscriptionSource?value)
 {
     if (value.HasValue)
     {
         this.Add(new KeyValuePair <string, string>(name, MaileonEnums.ToXmlString(value.Value)));
     }
     return(this);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Add a single parameter to the query
 /// </summary>
 /// <param name="name">the name of the parameter</param>
 /// <param name="value">the value of the parameter</param>
 /// <returns>this query</returns>
 public QueryParameters Add(string name, BlockStatus?value)
 {
     if (value.HasValue)
     {
         this.Add(new KeyValuePair <string, string>(name, MaileonEnums.ToXmlString(value.Value)));
     }
     return(this);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Adds a list of DeviceType parameters to the query
 /// </summary>
 /// <param name="name"></param>
 /// <param name="values"></param>
 /// <returns></returns>
 public QueryParameters AddList(string name, List <MailingFormat> values)
 {
     if (values == null)
     {
         return(this);
     }
     foreach (MailingFormat elem in values)
     {
         this.Add(name, MaileonEnums.ToXmlString(elem));
     }
     return(this);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Adds a list of DeviceType parameters to the query
 /// </summary>
 /// <param name="name"></param>
 /// <param name="values"></param>
 /// <returns></returns>
 public QueryParameters AddList(string name, List <DeviceType> values)
 {
     if (values == null)
     {
         return(this);
     }
     foreach (DeviceType elem in values)
     {
         this.Add(name, MaileonEnums.ToXmlString(elem));
     }
     return(this);
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Adds a list of BlockReason parameters to the query
 /// </summary>
 /// <param name="name"></param>
 /// <param name="values"></param>
 /// <returns></returns>
 public QueryParameters AddList(string name, List <BlockReason> values)
 {
     if (values == null)
     {
         return(this);
     }
     foreach (BlockReason elem in values)
     {
         this.Add(name, MaileonEnums.ToXmlString(elem));
     }
     return(this);
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Adds a list of StandardFieldNames parameters to the query
 /// </summary>
 /// <param name="name"></param>
 /// <param name="values"></param>
 /// <returns></returns>
 public QueryParameters AddList(string name, List <StandardFieldName> values)
 {
     if (values == null)
     {
         return(this);
     }
     foreach (StandardFieldName elem in values)
     {
         this.Add(name, MaileonEnums.ToXmlString(elem));
     }
     return(this);
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Adds a list of string parameters to the query
 /// </summary>
 /// <param name="name"></param>
 /// <param name="values"></param>
 /// <returns></returns>
 public QueryParameters AddList(string name, List <SocialNetwork> values)
 {
     if (values == null)
     {
         return(this);
     }
     foreach (SocialNetwork elem in values)
     {
         this.Add(name, MaileonEnums.ToXmlString(elem));
     }
     return(this);
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Add a single parameter to the query
 /// </summary>
 /// <param name="name">the name of the parameter</param>
 /// <param name="value">the value of the parameter</param>
 /// <returns>this query</returns>
 public QueryParameters Add(string name, CustomFieldType value)
 {
     this.Add(new KeyValuePair <string, string>(name, MaileonEnums.ToXmlString(value)));
     return(this);
 }