Files
SPT-Server-Build/Libraries/SPTarkov.Server.Core/Models/Eft/Dialog/SendMessageRequest.cs
T
Jesse b6692fead4 Chatbot async improvements (#446)
* Add better chatbot handling by making them asynchronous

Removes the need for having RunInTimespan as await Task.Delay now can handle this

* Remove now unused classes

* Handle commando's commands with ValueTask

* Set values as not nullable, client sends all of these
2025-07-04 18:04:37 +01:00

24 lines
646 B
C#

using System.Text.Json.Serialization;
using SPTarkov.Server.Core.Models.Enums;
using SPTarkov.Server.Core.Models.Utils;
namespace SPTarkov.Server.Core.Models.Eft.Dialog;
public record SendMessageRequest : IRequestData
{
[JsonExtensionData]
public Dictionary<string, object>? ExtensionData { get; set; }
[JsonPropertyName("dialogId")]
public required string DialogId { get; set; }
[JsonPropertyName("type")]
public required MessageType Type { get; set; }
[JsonPropertyName("text")]
public required string Text { get; set; }
[JsonPropertyName("replyTo")]
public required string ReplyTo { get; set; }
}