Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions src/WhatsApp/CallToFlowResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ public record FlowParameters
/// <summary>Initializes a new instance of the <see cref="FlowParameters"/> record using a flow name.</summary>
public FlowParameters(string flowName) => Name = flowName;

/// <summary>Gets the flow identifier, if the instance was constructed with it.</summary>
/// <summary>Gets the flow identifier, if the instance was constructed with a number.</summary>
public long? Id { get; }

/// <summary>Gets the flow name, if the instance was constructed with it.</summary>
/// <summary>Gets the flow name, if the instance was constructed with a string.</summary>
public string? Name { get; }

/// <summary>Indicates the action to perform when the flow is initiated. Defaults to <see cref="FlowAction.Navigate"/>.</summary>
Expand Down
7 changes: 7 additions & 0 deletions src/WhatsApp/JsonContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
[JsonSerializable(typeof(ContentMessage))]
[JsonSerializable(typeof(ErrorMessage))]
[JsonSerializable(typeof(FlowDataRequest))]
[JsonSerializable(typeof(FlowToken))]

Check warning on line 39 in src/WhatsApp/JsonContext.cs

View workflow job for this annotation

GitHub Actions / build-ubuntu-latest

Did not generate serialization metadata for type 'Devlooped.WhatsApp.Flows.FlowToken'. (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1030)

Check warning on line 39 in src/WhatsApp/JsonContext.cs

View workflow job for this annotation

GitHub Actions / build-ubuntu-latest

Did not generate serialization metadata for type 'Devlooped.WhatsApp.Flows.FlowToken'. (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1030)

Check warning on line 39 in src/WhatsApp/JsonContext.cs

View workflow job for this annotation

GitHub Actions / build-ubuntu-latest

Did not generate serialization metadata for type 'Devlooped.WhatsApp.Flows.FlowToken'. (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1030)

Check warning on line 39 in src/WhatsApp/JsonContext.cs

View workflow job for this annotation

GitHub Actions / build-ubuntu-latest

Did not generate serialization metadata for type 'Devlooped.WhatsApp.Flows.FlowToken'. (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1030)

Check warning on line 39 in src/WhatsApp/JsonContext.cs

View workflow job for this annotation

GitHub Actions / build-ubuntu-latest

Did not generate serialization metadata for type 'Devlooped.WhatsApp.Flows.FlowToken'. (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1030)

Check warning on line 39 in src/WhatsApp/JsonContext.cs

View workflow job for this annotation

GitHub Actions / build-ubuntu-latest

Did not generate serialization metadata for type 'Devlooped.WhatsApp.Flows.FlowToken'. (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1030)

Check warning on line 39 in src/WhatsApp/JsonContext.cs

View workflow job for this annotation

GitHub Actions / build-ubuntu-latest

Did not generate serialization metadata for type 'Devlooped.WhatsApp.Flows.FlowToken'. (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1030)

Check warning on line 39 in src/WhatsApp/JsonContext.cs

View workflow job for this annotation

GitHub Actions / build-ubuntu-latest

Did not generate serialization metadata for type 'Devlooped.WhatsApp.Flows.FlowToken'. (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1030)

Check warning on line 39 in src/WhatsApp/JsonContext.cs

View workflow job for this annotation

GitHub Actions / build-ubuntu-latest

Did not generate serialization metadata for type 'Devlooped.WhatsApp.Flows.FlowToken'. (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1030)

Check warning on line 39 in src/WhatsApp/JsonContext.cs

View workflow job for this annotation

GitHub Actions / build-ubuntu-latest

Did not generate serialization metadata for type 'Devlooped.WhatsApp.Flows.FlowToken'. (https://learn.microsoft.com/dotnet/fundamentals/syslib-diagnostics/syslib1030)
[JsonSerializable(typeof(InteractiveMessage))]
[JsonSerializable(typeof(ReactionMessage))]
[JsonSerializable(typeof(StatusMessage))]
Expand All @@ -60,6 +60,13 @@
[JsonSerializable(typeof(VideoParameter))]
[JsonSerializable(typeof(DocumentParameter))]
[JsonSerializable(typeof(LocationParameter))]
[JsonSerializable(typeof(CallToActionResponse))]
[JsonSerializable(typeof(CallToFlowResponse))]
[JsonSerializable(typeof(FlowDataResponse))]
[JsonSerializable(typeof(ReactionResponse))]
[JsonSerializable(typeof(TemplateResponse))]
[JsonSerializable(typeof(TextResponse))]
[JsonSerializable(typeof(TypingResponse))]
public partial class JsonContext : JsonSerializerContext
{
static readonly Lazy<JsonSerializerOptions> options = new(CreateDefaultOptions);
Expand Down
Loading