Example #1
0
        public override async Task <ResponseMessage> LoadParametersByCompId(string compId, List <Parameter> paramList)
        {
            ResponseMessage response = await HDBHandler.LoadParametersByCompId(CompName, compId);

            if (!response.IsSuccessful)
            {
                return(response);
            }
            //update parameters with the values fetched from the databases
            return(SaveImportParameters(response, CompName.Substring(0, CompName.Length - 1), paramList));
        }
Example #2
0
        protected override string GetSearchURL(IEnumerable <string[]> paramPaths, out string dataName)
        {
            string searchUrl = GetAllComponenstUrl();
            string idValue   = ExtractIdValue();

            if (idValue != null)
            {
                searchUrl += $"({idValue}).json";
                dataName   = CompName.Substring(0, CompName.Length - 1);
            }
            else
            {
                searchUrl += ".json";
                dataName   = CompName;
            }
            searchUrl += GetFilterAndExpansion(paramPaths);
            return(searchUrl);
        }