Class UpdateSketchAttachmentRequest
Represents a request to update an existing Sketch attachment in annotation
Inherited Members
Namespace: Unity.Cloud.Collaboration.Models.AttachmentRequest
Assembly: Unity.Cloud.Collaboration.dll
Syntax
public class UpdateSketchAttachmentRequest : IUpdateSketchAttachmentRequest, IUpdateAttachmentRequest
Constructors
UpdateSketchAttachmentRequest(string, ICameraDetails, TimeDetails?, IRequestFileDetails, IRequestFileDetails, Dictionary<string, object>)
Initializes a new instance of the UpdateSketchAttachmentRequest class with the specified sketch data, camera details, time, preview, sketch image, and metadata.
Declaration
public UpdateSketchAttachmentRequest(string sketchData, ICameraDetails camera, TimeDetails? time = null, IRequestFileDetails preview = null, IRequestFileDetails sketchImage = null, Dictionary<string, object> metadata = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | sketchData | The sketch data to be attached. |
| ICameraDetails | camera | The camera details associated with the sketch. |
| TimeDetails? | time | The time details for the sketch attachment. |
| IRequestFileDetails | preview | The preview file details for the sketch. |
| IRequestFileDetails | sketchImage | The image file details for the sketch. |
| Dictionary<string, object> | metadata | Additional metadata for the sketch attachment. |
Properties
Camera
Camera data structure.
Declaration
public ICameraDetails Camera { get; }
Property Value
| Type | Description |
|---|---|
| ICameraDetails |
Metadata
Declaration
public Dictionary<string, object> Metadata { get; }
Property Value
| Type | Description |
|---|---|
| Dictionary<string, object> |
Preview
File data for sketch attachment
Declaration
public IRequestFileDetails Preview { get; }
Property Value
| Type | Description |
|---|---|
| IRequestFileDetails |
SketchData
The JSON data of the sketch.
Declaration
public string SketchData { get; }
Property Value
| Type | Description |
|---|---|
| string |
SketchImage
File data for sketch attachment
Declaration
public IRequestFileDetails SketchImage { get; }
Property Value
| Type | Description |
|---|---|
| IRequestFileDetails |
Time
Time data structure.
Declaration
public TimeDetails? Time { get; }
Property Value
| Type | Description |
|---|---|
| TimeDetails? |
Type
The type of the Attachment, this should be used to identify the specific type of Attachment given.
Declaration
public string Type { get; }
Property Value
| Type | Description |
|---|---|
| string |
Examples
"file" | "other"