MessagingMessageMediaDto

An attachment on a message. The file is served at SodiumHQ.DTOs.Messaging.MessagingMessageMediaDto.Url once the Messaging Service holds
its copy.

Properties

Name Type Description
mediaIndexinteger

Its position on the message, from 0

Its position on the message, from 0

contentTypestring

MIME type, e.g. image/jpeg

MIME type, e.g. image/jpeg

sizeinteger

Size in bytes, once the Messaging Service holds its copy

Size in bytes, once the Messaging Service holds its copy

isCopiedboolean

Whether the Messaging Service holds its own copy of the file

Whether the Messaging Service holds its own copy of the file

urlstring

Where SodiumHQ streams the file from (this API, with the caller's token), or null until the
Messaging Service holds its copy

Where SodiumHQ streams the file from (this API, with the caller's token), or null until the
Messaging Service holds its copy

JSON Example

{
  "mediaIndex": 0,
  "contentType": "string",
  "size": 0,
  "isCopied": false,
  "url": "string"
}

Contained in Schemas