-
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
05b52a2
commit d5bc0ac
Showing
4 changed files
with
122 additions
and
9 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
46 changes: 46 additions & 0 deletions
46
WhatsappBusiness.CloudApi/Messages/Requests/InteractiveLocationMessageRequest.cs
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,46 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace WhatsappBusiness.CloudApi.Messages.Requests | ||
{ | ||
public class InteractiveLocationMessageRequest | ||
{ | ||
[JsonProperty("messaging_product")] | ||
public string MessagingProduct { get; private set; } = "whatsapp"; | ||
|
||
[JsonProperty("recipient_type")] | ||
public string RecipientType { get; private set; } = "individual"; | ||
|
||
[JsonProperty("type")] | ||
public string Type { get; private set; } = "interactive"; | ||
|
||
[JsonProperty("to")] | ||
public string To { get; set; } | ||
|
||
[JsonProperty("interactive")] | ||
public InteractiveLocationRequestMessage Interactive { get; set; } | ||
} | ||
|
||
public class InteractiveLocationRequestMessage | ||
{ | ||
[JsonProperty("type")] | ||
public string Type { get; private set; } = "location_request_message"; | ||
|
||
[JsonProperty("body")] | ||
public InteractiveLocationBody Body { get; set; } | ||
|
||
[JsonProperty("action")] | ||
public InteractiveLocationAction Action { get; set; } | ||
} | ||
|
||
public class InteractiveLocationAction | ||
{ | ||
[JsonProperty("name")] | ||
public string Name { get; private set; } = "send_location"; | ||
} | ||
|
||
public class InteractiveLocationBody | ||
{ | ||
[JsonProperty("text")] | ||
public string Text { 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