Files
QMAX/server/QMax.Api/Infrastructure/Max/MaxBridgeModels.cs
T
2026-07-05 15:17:11 +03:00

65 lines
1.7 KiB
C#

namespace QMax.Api.Infrastructure.Max;
public sealed record MaxBridgeStatus(
string Mode,
bool IsAuthorized,
string? LoginStage,
string Status,
string? Url,
string? Title,
string? LastError,
DateTimeOffset UpdatedAt);
public sealed record MaxBrowserSnapshot(
string? Url,
string? Title,
string BodyText,
string ScreenshotPngBase64,
DateTimeOffset CapturedAt);
public sealed record MaxChatUpdate(
string ExternalId,
string Title,
string? AvatarUrl,
DateTimeOffset UpdatedAt,
IReadOnlyList<MaxMessageUpdate> Messages,
string? LastMessagePreview = null,
bool? LastMessageIsOutgoing = null,
DateTimeOffset? LastMessageAt = null,
string? LastMessageTimeText = null,
string? ChatUrl = null);
public sealed record MaxMessageUpdate(
string ExternalId,
string? SenderExternalId,
string? SenderName,
bool IsOutgoing,
string? Text,
DateTimeOffset SentAt,
IReadOnlyList<MaxAttachmentUpdate>? Attachments = null,
string? DeliveryState = null);
public sealed record MaxAttachmentUpdate(
string ExternalId,
string FileName,
string? ContentType,
long? FileSizeBytes,
string? RemoteUrl,
string? Kind,
int SortOrder,
string? TextContent = null);
public sealed record MaxSendResult(bool Success, string? ExternalMessageId, string? Error, string? ChatUrl = null);
public sealed record MaxActionResult(bool Success, string? Error);
public sealed record MaxMediaDownload(
Stream Stream,
string ContentType,
long? ContentLength);
public sealed record MaxChatPresence(
bool IsTyping,
string? StatusText,
DateTimeOffset UpdatedAt);