Skip to content
This repository has been archived by the owner on Jul 29, 2022. It is now read-only.

Commit

Permalink
Fixed some parameters in the CreateList method which were incorrectly…
Browse files Browse the repository at this point in the history
… indicated as optional
  • Loading branch information
Jericho committed Mar 26, 2015
1 parent ded83b0 commit 537207c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CakeMail.RestClient/CakeMailRestClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -649,10 +649,10 @@ public int CreateList(string userKey, string name, string defaultSenderName, str
var parameters = new List<KeyValuePair<string, object>>()
{
new KeyValuePair<string, object>("user_key", userKey),
new KeyValuePair<string, object>("name", name)
new KeyValuePair<string, object>("name", name),
new KeyValuePair<string, object>("sender_name", defaultSenderName),
new KeyValuePair<string, object>("sender_email", defaultSenderEmailAddress)
};
if (defaultSenderName != null) parameters.Add(new KeyValuePair<string, object>("sender_name", defaultSenderName));
if (defaultSenderEmailAddress != null) parameters.Add(new KeyValuePair<string, object>("sender_email", defaultSenderEmailAddress));
if (clientId.HasValue) parameters.Add(new KeyValuePair<string, object>("client_id", clientId.Value));

return ExecuteObjectRequest<int>(path, parameters);
Expand Down

0 comments on commit 537207c

Please sign in to comment.