Interface IAttachment
Defines the base interface for attachments in the Collaboration SDK. Attachments are used to provide additional context to annotations through various formats, such as files or other data types that can be associated with annotations.
Namespace: Unity.Cloud.Collaboration.Models.Attachments
Assembly: Unity.Cloud.Collaboration.dll
Syntax
public interface IAttachment
Properties
AttachmentId
Id of the Attachment.
Declaration
[DataMember(Name = "attachmentId", EmitDefaultValue = true)]
AttachmentId AttachmentId { get; }
Property Value
| Type | Description |
|---|---|
| AttachmentId |
Created
The timestamp when the attachment was created, in ISO format.
Declaration
[DataMember(Name = "created", EmitDefaultValue = true)]
DateTime Created { get; }
Property Value
| Type | Description |
|---|---|
| DateTime |
CreatedBy
The Unity account Id of the user who created the attachment.
Declaration
[DataMember(Name = "createdBy", EmitDefaultValue = true)]
string CreatedBy { get; }
Property Value
| Type | Description |
|---|---|
| string |
Metadata
Metadata for the Attachment
Declaration
[DataMember(Name = "metadata", EmitDefaultValue = true)]
Dictionary<string, string> Metadata { get; }
Property Value
| Type | Description |
|---|---|
| Dictionary<string, string> |
Type
The type of the Attachment, this should be used to identify the specific type of Attachment given
Declaration
[DataMember(Name = "type", EmitDefaultValue = true)]
string Type { get; }
Property Value
| Type | Description |
|---|---|
| string |