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

            if (!response.IsSuccessful)
            {
                return(response);
            }
            //update parameters with the values fetched from the databases
            return(SaveImportParameters(response, null, ImportParams));
        }
Exemple #2
0
        public override async Task <ResponseMessage> UpdateComponentToDB()
        {
            string updateUrl = GetPutUrl(CompName);

            return(await CDPHandler.UpdateComponentToDB(updateUrl, ComponentDetails.ToString()));
        }
Exemple #3
0
 protected override object ExtractResponseBody(object jsonData, string dataName = null) => CDPHandler.ExtractResponseBody(jsonData);
Exemple #4
0
 protected override string GetAllComponenstUrl() => CDPHandler.GetAllComponenstUrl(CompName);
Exemple #5
0
 public override async Task <ResponseMessage> FetchDataFromDB(string url)
 {
     return(await CDPHandler.FetchDataFromDB(url));
 }
 async Task <ResponseMessage> IDbHandler.GetAttributeValuesOfAllComponents(string[] attrPath) =>
 await CDPHandler.GetAttributeValuesOfAllComponents(attrPath);