Skip to main content
←API Reference ←com.nianticspatial.nsdk.sites

AssetInfo

Represents an asset, and the areas it is split into, from the Sites Manager service.

Declaration​

data class AssetInfo

Constructors​

constructor(id: String, assetTimestamp: Long, siteId: String, name: String, description: String?, assetType: AssetType, assetStatus: AssetStatusType, deployment: AssetDeploymentType, typedData: TypedAssetData, pipelineJobId: String?, pipelineJobStatus: AssetPipelineJobStatus, sourceScanIds: List<String>, areas: List<AssetArea> = emptyList())

Parameters​

NameTypeSummary
idString
-
assetTimestampLong
-
siteIdString
-
nameString
-
descriptionString?
-
assetTypeAssetType
-
assetStatusAssetStatusType
-
deploymentAssetDeploymentType
-
typedDataTypedAssetData
-
pipelineJobIdString?
-
pipelineJobStatusAssetPipelineJobStatus
-
sourceScanIdsList<String>
-
areasList<AssetArea>
-

Properties​

NameTypeSummary
areasList<AssetArea>
Every area of this asset. An asset mapped in a single pass has exactly one; empty while its job has produced no output yet.
assetStatusAssetStatusType
DEPRECATED - always [AssetStatusType.UNSPECIFIED].
assetTimestampLong
-
assetTypeAssetType
Asset type - determines which fields of [AssetArea] are meaningful.
deploymentAssetDeploymentType
Asset deployment type.
descriptionString?
Asset description, or null if empty.
idString
Asset identifier.
meshDataAssetMeshData?
DEPRECATED - read areas[0] instead. Null unless the asset type is mesh and [areas] is
non-empty.
nameString
Asset display name.
pipelineJobIdString?
DEPRECATED - always null. The portal has no source for it; retained so existing callers keep compiling.
pipelineJobStatusAssetPipelineJobStatus
DEPRECATED - read [AssetArea.jobStatus] on each entry of [areas]. The portal leaves the asset-level status unset, since a job belongs to an area, so expect [AssetPipelineJobStatus.UNSPECIFIED].
siteIdString
Site identifier that owns this asset.
sourceScanIdsList<String>
DEPRECATED - always empty. The portal has no source for it; retained so existing callers keep compiling.
splatDataAssetSplatData?
DEPRECATED - read areas[0] instead. Null unless the asset type is splat and [areas] is
non-empty.
typedDataTypedAssetData
DEPRECATED - read areas[0] instead. Every field here is a copy of one on that area, so this describes the first area only and is partial for an asset with multiple areas.
vpsDataAssetVpsData?
DEPRECATED - read areas[0] instead. Null unless the asset type is vps and [areas] is
non-empty.