Exemplo n.º 1
0
        public SearchInterfaceDataBuilder SetSustainabilityRanking(int sustainabilityRanking)
        {
            if (ManusquareUtility.InRange(sustainabilityRanking, 0, 100))
            {
                this.sustainabilityRanking = sustainabilityRanking;
                return(this);
            }

            throw new ArgumentException("Sustainability ranking can only be from 0 to 100");
        }
Exemplo n.º 2
0
        public SearchInterfaceDataBuilder SetProfileRankingImportance(int profileRankingImportance)
        {
            if (ManusquareUtility.InRange(profileRankingImportance, 0, 100))
            {
                this.profileRankingImportance = profileRankingImportance;
                return(this);
            }

            throw new ArgumentException("Profile ranking can only be from 0 to 100");
        }
Exemplo n.º 3
0
        public SearchInterfaceDataBuilder SetOnTimeDeliveryImportance(int onTimeDeliveryImportance)
        {
            if (!ManusquareUtility.InRange(onTimeDeliveryImportance, 0, 5))
            {
                throw new ArgumentException("On time delivery importance must be from 0 to 5");
            }

            this.onTimeDeliveryImportance = onTimeDeliveryImportance;
            return(this);
        }
Exemplo n.º 4
0
        public SearchInterfaceDataBuilder SetCommunicationAndCollaberationEffectivenessImportance(int communicationAndCollaberationEffectivenessImportance)
        {
            if (!ManusquareUtility.InRange(communicationAndCollaberationEffectivenessImportance, 0, 5))
            {
                throw new ArgumentException("Communication and collaboration importance must be from 0 to 5");
            }

            this.communicationAndCollaberationEffectivenessImportance = communicationAndCollaberationEffectivenessImportance;
            return(this);
        }
Exemplo n.º 5
0
        private int priceRange;               // TODO: CONSIDER CLASSIFY YO

        public SearchInterfaceDataBuilder SetQualityOfProjectResultsImportance(int qualityOfProjectResultsImportance)
        {
            if (!ManusquareUtility.InRange(qualityOfProjectResultsImportance, 0, 5))
            {
                throw new ArgumentException("Quality of project result importance must be from 0 to 5");
            }

            this.qualityOfProjectResultsImportance = qualityOfProjectResultsImportance;
            return(this);
        }