/// <summary>
 /// Initializes a new instance of the <see cref="AssetConversionProperties"/> for mocking purposes.
 /// </summary>
 /// <param name="clientErrorDetails"> Information about the cause of a ClientError AssetConversionStatus. </param>
 /// <param name="serverErrorDetails"> Information about the cause of a ServerError AssetConversionStatus. </param>
 /// <param name="conversionErrorCode">The error code of the AOA asset conversion job.</param>
 /// <param name="jobId"> Identifier for the AOA Asset Conversion Job. </param>
 /// <param name="outputModelUri"> The URI for downloading the generated AOA Model. </param>
 /// <param name="assetConversionStatus"> The status of the AOA asset conversion job. </param>
 /// <param name="assetFileType"> The file type of the original 3D asset. Examples include: &quot;ply&quot;, &quot;obj&quot;, &quot;fbx&quot;, &quot;glb&quot;, &quot;gltf&quot;, etc. </param>
 /// <param name="uploadedInputAssetUri"> 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. </param>
 /// <param name="accountId"> Identifier for the Account owning the AOA asset conversion Job. </param>
 /// <param name="assetConversionConfiguration"> The configuration of the AOA asset conversion job. </param>
 /// <param name="scaledAssetDimensions">The scaled dimensions of the asset.</param>
 /// <returns> A new instance of the <see cref="AssetConversionProperties"/> for mocking purposes. </returns>
 public static AssetConversionProperties AssetConversionProperties(
     string clientErrorDetails,
     string serverErrorDetails,
     ConversionErrorCode conversionErrorCode,
     Guid?jobId,
     Uri outputModelUri,
     AssetConversionStatus?assetConversionStatus,
     AssetFileType assetFileType,
     Uri uploadedInputAssetUri,
     Guid?accountId,
     AssetConversionConfiguration assetConversionConfiguration,
     System.Numerics.Vector3 scaledAssetDimensions)
 {
     return(new AssetConversionProperties(
                clientErrorDetails,
                serverErrorDetails,
                conversionErrorCode,
                jobId,
                outputModelUri.AbsoluteUri,
                assetConversionStatus,
                assetFileType.ToString(),
                uploadedInputAssetUri.AbsoluteUri,
                accountId,
                assetConversionConfiguration,
                new Vector3(scaledAssetDimensions)));
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AssetConversionProperties"/> for mocking purposes.
 /// </summary>
 /// <param name="clientErrorDetails"> Information about the cause of a ClientError AssetConversionStatus. </param>
 /// <param name="serverErrorDetails"> Information about the cause of a ServerError AssetConversionStatus. </param>
 /// <param name="jobId"> Identifier for the AOA Asset Conversion Job. </param>
 /// <param name="outputModelUri"> The URI for downloading the generated AOA Model. </param>
 /// <param name="assetConversionStatus"> The status of the AOA asset conversion job </param>
 /// <param name="assetFileType"> The file type of the original 3D asset. Examples include: &quot;ply&quot;, &quot;obj&quot;, &quot;fbx&quot;, &quot;glb&quot;, &quot;gltf&quot;, etc. </param>
 /// <param name="uploadedInputAssetUri"> 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. </param>
 /// <param name="accountId"> Identifier for the Account owning the AOA asset conversion Job. </param>
 /// <param name="assetConversionConfiguration"> The configuration of the AOA asset conversion job </param>
 /// <returns> A new instance of the <see cref="AssetConversionProperties"/> for mocking purposes. </returns>
 public static AssetConversionProperties AssetConversionProperties(
     string clientErrorDetails,
     string serverErrorDetails,
     Guid?jobId,
     Uri outputModelUri,
     AssetConversionStatus?assetConversionStatus,
     AssetFileType assetFileType,
     Uri uploadedInputAssetUri,
     Guid?accountId,
     AssetConversionConfiguration assetConversionConfiguration)
 {
     return(new AssetConversionProperties(
                clientErrorDetails,
                serverErrorDetails,
                jobId,
                outputModelUri.AbsoluteUri,
                assetConversionStatus,
                assetFileType.ToString(),
                uploadedInputAssetUri.AbsoluteUri,
                accountId,
                assetConversionConfiguration));
 }