-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c41951a
commit d2c3479
Showing
4 changed files
with
86 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
using Newtonsoft.Json; | ||
using System.Collections.Generic; | ||
|
||
namespace WhatsappBusiness.CloudApi.Webhook | ||
{ | ||
public class FlowMessageReceived | ||
{ | ||
[JsonProperty("messages")] | ||
public List<FlowMessage> Messages { get; set; } | ||
} | ||
|
||
public class FlowMessage | ||
{ | ||
[JsonProperty("context")] | ||
public FlowContext Context { get; set; } | ||
|
||
[JsonProperty("from")] | ||
public string From { get; set; } | ||
|
||
[JsonProperty("id")] | ||
public string Id { get; set; } | ||
|
||
[JsonProperty("type")] | ||
public string Type { get; set; } | ||
|
||
[JsonProperty("interactive")] | ||
public FlowInteractive Interactive { get; set; } | ||
|
||
[JsonProperty("timestamp")] | ||
public string Timestamp { get; set; } | ||
} | ||
|
||
public class FlowContext | ||
{ | ||
[JsonProperty("from")] | ||
public string From { get; set; } | ||
|
||
[JsonProperty("id")] | ||
public string Id { get; set; } | ||
} | ||
|
||
public class FlowInteractive | ||
{ | ||
[JsonProperty("type")] | ||
public string Type { get; set; } | ||
|
||
[JsonProperty("nfm_reply")] | ||
public NfmReply NfmReply { get; set; } | ||
} | ||
|
||
public partial class NfmReply | ||
{ | ||
[JsonProperty("name")] | ||
public string Name { get; set; } | ||
|
||
[JsonProperty("body")] | ||
public string Body { get; set; } | ||
|
||
[JsonProperty("response_json")] | ||
public string ResponseJson { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters