Example #1
0
        public SloDataSource(Dictionary <object, object> dataSource)
        {
            Id   = SloValidator.GetString(this.GetType().Name, dataSource, "id");
            Type = SloValidator.GetString(this.GetType().Name, dataSource, "type");
            //AccountIds = SloDataSourceAccountId.ParseList(SloValidator.GetList(this.GetType().Name, dataSource, "accountids"));

            try
            {
                AccountIds = SloDataSourceAccountId.ParseList(SloValidator.GetList(this.GetType().Name, dataSource, "accountids"));
            }
            catch (Exception)
            {
                AccountIds = new List <SloDataSourceAccountId>();
            }
        }
Example #2
0
 public SloDataSource(Dictionary <object, object> dataSource)
 {
     Id         = SloValidator.GetString(this.GetType().Name, dataSource, "id");
     Type       = SloValidator.GetString(this.GetType().Name, dataSource, "type");
     AccountIds = SloDataSourceAccountId.ParseList(SloValidator.GetList(this.GetType().Name, dataSource, "accountids"));
 }