Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/WhatsApp/IMessage.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Text.Json.Serialization;
using Devlooped.WhatsApp.Flows;
using Microsoft.Extensions.AI;

namespace Devlooped.WhatsApp;
Expand All @@ -22,8 +23,11 @@ namespace Devlooped.WhatsApp;
[JsonDerivedType(typeof(ReactionResponse), "response/reaction")]
[JsonDerivedType(typeof(TypingResponse), "response/typing")]
[JsonDerivedType(typeof(CallToActionResponse), "response/cta")]
[JsonDerivedType(typeof(CallToFlowResponse), "response/flow")]
[JsonDerivedType(typeof(AnonymousResponse), "response/dynamic")]
[JsonDerivedType(typeof(CallToFlowResponse), "response/flow")] // initiates flow
[JsonDerivedType(typeof(InteractiveFlowMessage), "flow")] // flow final response
[JsonDerivedType(typeof(FlowDataRequest), "flow/int")] // flow data_exchange input
[JsonDerivedType(typeof(FlowDataResponse), "flow/out")] // flow data_exchange output
public interface IMessage
{
/// <summary>Gets or sets any additional properties associated with the message.</summary>
Expand Down
Loading