Initial QMAX production app
This commit is contained in:
@@ -0,0 +1,63 @@
|
||||
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);
|
||||
|
||||
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);
|
||||
|
||||
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);
|
||||
Reference in New Issue
Block a user