Skip to content

Commit

Permalink
Named parameter support #111
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieldwight committed Dec 11, 2024
1 parent 181e0e0 commit 3ef35eb
Show file tree
Hide file tree
Showing 14 changed files with 45 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ public class AuthenticationMessageParameter
[JsonProperty("type")]
public string Type { get; set; }

[JsonProperty("parameter_name", NullValueHandling = NullValueHandling.Ignore)]
public string ParameterName { get; set; }

[JsonProperty("text")]
public string Text { get; set; }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ public class CatalogTemplateMessageParameter
[JsonProperty("type")]
public string Type { get; set; }

[JsonProperty("parameter_name", NullValueHandling = NullValueHandling.Ignore)]
public string ParameterName { get; set; }

[JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)]
public string Text { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ public class CouponCodeMessageParameter
[JsonProperty("type")]
public string Type { get; set; }

[JsonProperty("parameter_name", NullValueHandling = NullValueHandling.Ignore)]
public string ParameterName { get; set; }

[JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)]
public string Text { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ public class DocumentMessageParameter
[JsonProperty("type")]
public string Type { get; set; }

[JsonProperty("document", NullValueHandling = NullValueHandling.Ignore)]
[JsonProperty("parameter_name", NullValueHandling = NullValueHandling.Ignore)]
public string ParameterName { get; set; }

[JsonProperty("document", NullValueHandling = NullValueHandling.Ignore)]
public Document Document { get; set; }

[JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ public class FlowTemplateMessageParameter
[JsonProperty("type")]
public string Type { get; set; }

[JsonProperty("parameter_name", NullValueHandling = NullValueHandling.Ignore)]
public string ParameterName { get; set; }

[JsonProperty("action", NullValueHandling = NullValueHandling.Ignore)]
public FlowTemplateMessageAction Action { get; set; }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ public class ImageMessageParameter
[JsonProperty("type")]
public string Type { get; set; }

[JsonProperty("image", NullValueHandling = NullValueHandling.Ignore)]
[JsonProperty("parameter_name", NullValueHandling = NullValueHandling.Ignore)]
public string ParameterName { get; set; }

[JsonProperty("image", NullValueHandling = NullValueHandling.Ignore)]
public Image Image { get; set; }

[JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ public class InteractiveMessageParameter
[JsonProperty("type")]
public string Type { get; set; }

[JsonProperty("image", NullValueHandling = NullValueHandling.Ignore)]
[JsonProperty("parameter_name", NullValueHandling = NullValueHandling.Ignore)]
public string ParameterName { get; set; }

[JsonProperty("image", NullValueHandling = NullValueHandling.Ignore)]
public InteractiveMessageImage Image { get; set; }

[JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ public class LimitedTimeOfferMessageParameter
[JsonProperty("type")]
public string Type { get; set; }

[JsonProperty("parameter_name", NullValueHandling = NullValueHandling.Ignore)]
public string ParameterName { get; set; }

[JsonProperty("image", NullValueHandling = NullValueHandling.Ignore)]
public LimitedTimeOfferMessageImage Image { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ public class LocationMessageParameter
[JsonProperty("type")]
public string Type { get; set; }

[JsonProperty("location", NullValueHandling = NullValueHandling.Ignore)]
[JsonProperty("parameter_name", NullValueHandling = NullValueHandling.Ignore)]
public string ParameterName { get; set; }

[JsonProperty("location", NullValueHandling = NullValueHandling.Ignore)]
public LocationDetails Location { get; set; }

[JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ public class MPMParameter
[JsonProperty("type")]
public string Type { get; set; }

[JsonProperty("parameter_name", NullValueHandling = NullValueHandling.Ignore)]
public string ParameterName { get; set; }

[JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)]
public string Text { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ public class SPMParameter
[JsonProperty("type")]
public string Type { get; set; }

[JsonProperty("parameter_name", NullValueHandling = NullValueHandling.Ignore)]
public string ParameterName { get; set; }

[JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)]
public string Text { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ public class TextMessageParameter
[JsonProperty("type")]
public string Type { get; set; }

[JsonProperty("parameter_name", NullValueHandling = NullValueHandling.Ignore)]
public string ParameterName { get; set; }

[JsonProperty("image", NullValueHandling = NullValueHandling.Ignore)]
public TemplateImage Image { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ public class VideoMessageParameter
[JsonProperty("type")]
public string Type { get; set; }

[JsonProperty("video", NullValueHandling = NullValueHandling.Ignore)]
[JsonProperty("parameter_name", NullValueHandling = NullValueHandling.Ignore)]
public string ParameterName { get; set; }

[JsonProperty("video", NullValueHandling = NullValueHandling.Ignore)]
public Video Video { get; set; }

[JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)]
Expand Down
2 changes: 1 addition & 1 deletion WhatsappBusiness.CloudApi/WhatsappBusiness.CloudApi.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<RepositoryUrl>https://github.com/gabrieldwight/Whatsapp-Business-Cloud-Api-Net</RepositoryUrl>
<Nullable>enable</Nullable>
<LangVersion>latest</LangVersion>
<Version>1.0.40</Version>
<Version>1.0.41</Version>
</PropertyGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'net9.0'">
Expand Down

0 comments on commit 3ef35eb

Please sign in to comment.