-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
AssetConversionProperties.cs
101 lines (85 loc) · 3.65 KB
/
AssetConversionProperties.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System;
using Azure.Core;
using Azure.MixedReality.ObjectAnchors.Conversion.Models;
namespace Azure.MixedReality.ObjectAnchors.Conversion
{
/// <summary>
/// Represents the properties of an AOA asset conversion job.
/// </summary>
[CodeGenModel("IngestionProperties")]
public partial class AssetConversionProperties
{
/// <summary>
/// Represents the properties of an AOA asset conversion job.
/// </summary>
internal AssetConversionProperties()
{
}
/// <summary>
/// The URI for downloading the generated AOA Model.
/// </summary>
public Uri OutputModelUri
{
get
{
return OutputModelUriString == null ? null : new Uri(OutputModelUriString);
}
}
/// <summary>
/// The Uri to the Asset to be ingested by the AOA Asset Conversion Service. This asset needs to have been uploaded to the service using an endpoint provided from a call to the GetUploadUri API.
/// </summary>
public Uri InputAssetUri
{
get
{
return InputAssetUriString == null ? null : new Uri(InputAssetUriString);
}
internal set
{
InputAssetUriString = value.AbsoluteUri;
}
}
/// <summary>
/// The status of the AOA asset conversion job.
/// </summary>
[CodeGenMember("JobStatus")]
public AssetConversionStatus? ConversionStatus { get; internal set; }
/// <summary>
/// The configuration of the AOA asset conversion job.
/// </summary>
[CodeGenMember("IngestionConfiguration")]
public AssetConversionConfiguration ConversionConfiguration { get; internal set; }
/// <summary>
/// The error code of the AOA asset conversion job.
/// </summary>
public ConversionErrorCode ErrorCode { get; }
/// <summary>
/// The file type of the original 3D asset. Examples include: "ply", "obj", "fbx", "glb", "gltf", etc.
/// </summary>
public AssetFileType InputAssetFileType { get; internal set; }
/// <summary>
/// Identifier for the AOA Ingestion Job. </summary>
public Guid JobId { get => JobIdInternal.GetValueOrDefault(); set => JobIdInternal = value; }
/// <summary> Identifier for the Account owning the AOA Ingestion Job.
/// </summary>
public Guid AccountId { get => AccountIdInternal.GetValueOrDefault(); set => AccountIdInternal = value; }
/// <summary>
/// The scaled dimensions of the asset.
/// </summary>
public System.Numerics.Vector3? ScaledAssetDimensions { get => ScaledAssetDimensionsWrapper == null ? null : (System.Numerics.Vector3)ScaledAssetDimensionsWrapper; }
[CodeGenMember("OutputModelUri")]
internal string OutputModelUriString { get; }
[CodeGenMember("InputAssetUri")]
internal string InputAssetUriString { get; set; }
[CodeGenMember("AssetFileType")]
internal string AssetFileTypeString { get => this.InputAssetFileType.ToString(); set => this.InputAssetFileType = new AssetFileType(value); }
[CodeGenMember("JobId")]
internal Guid? JobIdInternal { get; set; }
[CodeGenMember("AccountId")]
internal Guid? AccountIdInternal { get; set; }
[CodeGenMember("ScaledAssetDimensions")]
internal Vector3 ScaledAssetDimensionsWrapper { get; set; }
}
}