Classifier.CuisinesClassifier.RestaurantsClassifier.RestaurantsClassifier C# (CSharp) Method

RestaurantsClassifier() public method

public RestaurantsClassifier ( IRestaurantSource restSource, string classifierName ) : System
restSource IRestaurantSource
classifierName string
return System
        public RestaurantsClassifier(IRestaurantSource restSource, string classifierName)
        {
            if (restSource == null)
                throw new ArgumentException("Can't RestaurantsClassifier: RestaurantsSourceType cannot be null.");
            if (string.IsNullOrEmpty(classifierName))
                throw new ArgumentException("Can't RestaurantsClassifier: classifierName cannot be null or empty.");
            restaurantsSource = restSource;
            classifier = classifierName;
            classifiedByRestInfo = new List<RestaurantBasicData>();
            classifiedByWebSearch = new List<RestaurantBasicData>();
            notClassified = new List<RestaurantBasicData>();
            allClassified = new List<RestaurantBasicData>();
        }