/// <summary> /// Initializes a new instance of the <see cref="Asset" /> class. /// </summary> /// <param name="index">unique asset identifier (required).</param> /// <param name="_params">_params (required).</param> public Asset(long?index = default, AssetParams _params = default(AssetParams)) { // to ensure "index" is required (not null) if (index == null) { throw new InvalidDataException("index is a required property for Asset and cannot be null"); } else { this.Index = index; } // to ensure "_params" is required (not null) if (_params == null) { throw new InvalidDataException("_params is a required property for Asset and cannot be null"); } else { this.Params = _params; } }
/// <summary> /// Initializes a new instance of the <see cref="TransactionAssetConfig" /> class. /// </summary> /// <param name="assetId">\\[xaid\\] ID of the asset being configured or empty if creating..</param> /// <param name="_params">_params.</param> public TransactionAssetConfig(long?assetId = default, AssetParams _params = default(AssetParams)) { this.AssetId = assetId; this.Params = _params; }