b6692fead4
* 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
24 lines
646 B
C#
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; }
|
|
}
|