2023-09-21 13:08:27 +00:00
|
|
|
using BotSharp.Abstraction.Conversations.Models;
|
|
|
|
|
|
|
|
|
|
namespace BotSharp.Plugin.PizzaBot.Functions;
|
|
|
|
|
|
|
|
|
|
public class GetOrderStatusFn : IFunctionCallback
|
|
|
|
|
{
|
|
|
|
|
public string Name => "get_order_status";
|
|
|
|
|
|
|
|
|
|
public async Task<bool> Execute(RoleDialogModel message)
|
|
|
|
|
{
|
2023-10-23 00:31:49 +00:00
|
|
|
message.Content = "ready to deliver, will arrived in about 15 minutes.";
|
|
|
|
|
message.Data = new
|
2023-09-21 13:08:27 +00:00
|
|
|
{
|
|
|
|
|
Status = "Ready to deliver",
|
|
|
|
|
EstimatedTime = "15 minuts"
|
|
|
|
|
};
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
}
|