Skip to content

Commit

Permalink
Product card carousel message template support
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieldwight committed Oct 23, 2024
1 parent 7aef702 commit fa055a5
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ public class CarouselCardComponent
[JsonProperty("type")]
public string Type { get; set; }

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

[JsonProperty("parameters")]
public List<CardMessageParameter> Parameters { get; set; }

Expand All @@ -67,6 +70,18 @@ public class CarouselCardComponent

[JsonProperty("index", NullValueHandling = NullValueHandling.Ignore)]
public long? Index { get; set; }

[JsonProperty("buttons", NullValueHandling = NullValueHandling.Ignore)]
public List<CardMessageButton> Buttons { get; set; }
}

public class CardMessageButton
{
[JsonProperty("type")]
public string Type { get; set; }

[JsonProperty("text")]
public string Text { get; set; }
}

public class CardMessageParameter
Expand Down

0 comments on commit fa055a5

Please sign in to comment.