Class OpenDIAsset
Base class for Open DI Assets. All properties are nullable to support partials for use in PATCH operations. Should support .ToDTOPartial() and .ToDTODefault() to represent the two modes (full for post, put, partial for patch).
Assembly: WMServer.dll
Syntax
public class OpenDIAsset : OpenDIBase
Constructors
OpenDIAsset()
Declaration
OpenDIAsset(WMAssetBase)
Declaration
public OpenDIAsset(WMAssetBase asset)
Parameters
Fields
DIDataReader
Declaration
public const string DIDataReader = "DIDataReader"
Field Value
DIDataSource
Declaration
public const string DIDataSource = "DIDataSource"
Field Value
DIDataWriter
Declaration
public const string DIDataWriter = "DIDataWriter"
Field Value
DIDirectory
Declaration
public const string DIDirectory = "DIDirectory"
Field Value
Properties
Status
The status of this version.
Declaration
public string? Status { get; protected set; }
Property Value
Version
The version number of this asset.
Declaration
public int? Version { get; protected set; }
Property Value
VersionName
The name of this version.
Declaration
public string? VersionName { get; set; }
Property Value
fullPathName
Full path name of this directory.
Declaration
public string? fullPathName { get; protected set; }
Property Value
imageURL
Store an image associated with the asset.
Declaration
public string? imageURL { get; set; }
Property Value
ownerID
An optional parameter to specify the ID of the asset's owner.
Declaration
public string? ownerID { get; set; }
Property Value
ownerType
An optional parameter to specify what the asset should belong to. If this does not satisf
Declaration
public string? ownerType { get; set; }
Property Value
parent
Reference to the Parent of this asset in the asset repository
Declaration
public string? parent { get; set; }
Property Value
Methods
Create(WMAssetBase)
Declaration
public static OpenDIAsset Create(WMAssetBase asset)
Parameters
Returns
ToDTODefault<T>()
Create a new IWMAssetBaseDTO object that contains the properties of this OpenDIAsset and fills in default values that were missing, and throws a validation exception if required values are missing.
Declaration
public T ToDTODefault<T>() where T : IWMAssetBaseDTO, new()
Returns
Type Parameters
ToDTOPartial<T>()
Declaration
public T ToDTOPartial<T>() where T : IWMAssetBaseDTO, new()
Returns
Type Parameters