/// <summary> /// Imports values from external source /// </summary> /// <param name="importer">User who importing values</param> /// <param name="vocabularyType">Type of vocabulary</param> /// <param name="source">External source</param> public Dictionary <string, string> Import(User importer, System.Type vocabularyType, IExternalVocabularySource source) { var newValuesArray = source.GetValuesFromFile(); _extensibleVocabularyService.AddNewExtendedValuesBy(importer.Id, vocabularyType, newValuesArray); return(newValuesArray); }
/// <summary> /// Imports collection of values from external source /// </summary> /// <param name="importer">User who importing values</param> /// <param name="vocabularyType">Type of vocabulary</param> /// <param name="source">External source</param> public List <Dictionary <string, object> > ImportCollection(System.Type AIClassType, IExternalVocabularySource source) { var newValuesArray = source.GetCollectionValuesFromFile(AIClassType); return(newValuesArray); }
public string[] Import <T>(User importer, IExternalVocabularySource source) where T : struct, IConvertible { return(null); }