/// <summary> /// Initializes a new instance of the <see cref="OptConfig" /> class. /// </summary> /// <param name="tickers">tickers (required).</param> /// <param name="wConfig">wConfig (required).</param> /// <param name="minAssets">minAssets (required).</param> /// <param name="endDate">endDate.</param> /// <param name="wAssetConfig">wAssetConfig.</param> /// <param name="startDate">startDate.</param> /// <param name="secTypes">secTypes (required).</param> public OptConfig(List <string> tickers = default(List <string>), WConfig wConfig = default(WConfig), int?minAssets = default(int?), DateTime?endDate = default(DateTime?), Object wAssetConfig = default(Object), DateTime?startDate = default(DateTime?), List <SecTypesEnum> secTypes = default(List <SecTypesEnum>)) { // to ensure "tickers" is required (not null) if (tickers == null) { throw new InvalidDataException("tickers is a required property for OptConfig and cannot be null"); } else { this.Tickers = tickers; } // to ensure "wConfig" is required (not null) if (wConfig == null) { throw new InvalidDataException("wConfig is a required property for OptConfig and cannot be null"); } else { this.WConfig = wConfig; } // to ensure "minAssets" is required (not null) if (minAssets == null) { throw new InvalidDataException("minAssets is a required property for OptConfig and cannot be null"); } else { this.MinAssets = minAssets; } // to ensure "secTypes" is required (not null) if (secTypes == null) { throw new InvalidDataException("secTypes is a required property for OptConfig and cannot be null"); } else { this.SecTypes = secTypes; } this.EndDate = endDate; this.WAssetConfig = wAssetConfig; this.StartDate = startDate; }
/// <summary> /// Initializes a new instance of the <see cref="MvoRequest" /> class. /// </summary> /// <param name="tickers">tickers (required).</param> /// <param name="wConfig">wConfig (required).</param> /// <param name="minAssets">minAssets (required).</param> /// <param name="endDate">endDate.</param> /// <param name="marketDataSource">marketDataSource (default to MarketDataSourceEnum.Nucleus).</param> /// <param name="wAssetConfig">wAssetConfig.</param> /// <param name="startDate">startDate.</param> /// <param name="tgtType">tgtType.</param> /// <param name="useProxyData">useProxyData (default to false).</param> /// <param name="tgtVal">tgtVal (default to 0.0F).</param> /// <param name="secTypes">secTypes (required).</param> public MvoRequest(List <string> tickers = default(List <string>), WConfig wConfig = default(WConfig), int?minAssets = default(int?), DateTime?endDate = default(DateTime?), MarketDataSourceEnum?marketDataSource = MarketDataSourceEnum.Nucleus, Object wAssetConfig = default(Object), DateTime?startDate = default(DateTime?), TgtTypeEnum?tgtType = default(TgtTypeEnum?), bool?useProxyData = false, float?tgtVal = 0.0F, List <SecTypesEnum> secTypes = default(List <SecTypesEnum>)) { // to ensure "tickers" is required (not null) if (tickers == null) { throw new InvalidDataException("tickers is a required property for MvoRequest and cannot be null"); } else { this.Tickers = tickers; } // to ensure "wConfig" is required (not null) if (wConfig == null) { throw new InvalidDataException("wConfig is a required property for MvoRequest and cannot be null"); } else { this.WConfig = wConfig; } // to ensure "minAssets" is required (not null) if (minAssets == null) { throw new InvalidDataException("minAssets is a required property for MvoRequest and cannot be null"); } else { this.MinAssets = minAssets; } // to ensure "secTypes" is required (not null) if (secTypes == null) { throw new InvalidDataException("secTypes is a required property for MvoRequest and cannot be null"); } else { this.SecTypes = secTypes; } this.EndDate = endDate; // use default value if no "marketDataSource" provided if (marketDataSource == null) { this.MarketDataSource = MarketDataSourceEnum.Nucleus; } else { this.MarketDataSource = marketDataSource; } this.WAssetConfig = wAssetConfig; this.StartDate = startDate; this.TgtType = tgtType; // use default value if no "useProxyData" provided if (useProxyData == null) { this.UseProxyData = false; } else { this.UseProxyData = useProxyData; } // use default value if no "tgtVal" provided if (tgtVal == null) { this.TgtVal = 0.0F; } else { this.TgtVal = tgtVal; } }