// ******************************************************************************** // Generated by DMVCFRAMEWORK 3.4.3-aluminium-rc1 at 2025-04-26 18.50.00 // ******************************************************************************** // Returns the token (and others info) needed for other API calls. // "Login" is invokable with POST only function Login(const UserName: string; const Password: string): TJsonObject; // Extends the expiration time of a still-valid token. Clients must use the token returned instead of the previous one. // "RefreshToken" is invokable with POST only function RefreshToken(const Token: string): TJsonObject; // Pushes a Message in a Queue // "EnqueueMessage" is invokable with POST only function EnqueueMessage(const Token: string; const QueueName: string; Message: TJsonObject): TJsonObject; // Pushes a Message in a Queue with a custom TTL in minutes // "EnqueueMessageTTL" is invokable with POST only function EnqueueMessageTTL(const Token: string; const QueueName: string; const TTL: UInt64; Message: TJsonObject): TJsonObject; // Atomically pushes multiple messages to multiple queues // "EnqueueMultipleMessages" is invokable with POST only function EnqueueMultipleMessages(const Token: string; Messages: TJsonArray): TJsonObject; // Dequeue one or more Messages from QueueName. // LastKnownID can be "__last__" (get the last message), "__first__" (get the first message) or any // MessageID previously retrieved (get the first message with MessageID greater the LastKnownID). // MaxMessageCount is the max number of messages that should be returned by the method. // If no message is available, it waits for TimeoutSec, then returns. // Max allowed timeout is 10 minutes, min allowed timeout is 5 seconds // "DequeueMultipleMessage" is invokable with POST only function DequeueMultipleMessage(const Token: string; const QueueName: string; LastKnownID: string; const MaxMessageCount: Integer; const TimeoutSec: Int64): TJsonObject; // Dequeue a single Message from QueueName. // LastKnownID can be "__last__" (get the last message), "__first__" (get the first message) or any // MessageID previously retrieved (get the first message with MessageID greater the LastKnownID). // MaxMessageCount is the max number of messages that should be returned by the method. // If no message is available, it waits for TimeoutSec, then returns. // Max allowed timeout is 10 minutes, min allowed timeout is 5 seconds // "DequeueMessage" is invokable with POST only function DequeueMessage(const Token: string; const QueueName: string; LastKnownID: string; const TimeoutSec: Int64): TJsonObject; // Get the next message, after timestamp, from QueueName. // If no message is available just returns, there is no wait nor timeout. // Usually called as first method to get the first LastKnownID // "GetNextMessageByTimestamp" is invokable with POST only function GetNextMessageByTimestamp(const Token: string; const QueueName: string; TimeStamp: TDateTime; IsUTC: Boolean): TJsonObject; // Deletes queue named "QueueName" // "DeleteQueue" is invokable with POST only procedure DeleteQueue(const Token: string; const QueueName: string); // Returns info about queues whose names starts with "NameFilter". // If "NameFilter" is empty, all queues are returned // "GetQueuesInfo" is invokable with POST only function GetQueuesInfo(const Token: string; const NameFilter: string): TJsonObject; // Returns the size (a.k.a. number of messages) of queue named "QueueName" // "GetQueueSize" is invokable with POST only function GetQueueSize(const Token: string; const QueueName: string): TJsonObject;