// Get configuration index public static int GetConfigurationIndex(WitConfiguration configuration) { // Search through configs return(Array.FindIndex(WitConfigs, (checkConfig) => checkConfig == configuration)); }
// Save configuration after determining path public static int SaveConfiguration(string serverToken, WitConfiguration configurationAsset) { string savePath = GetFileSaveDirectory(WitTexts.Texts.ConfigurationFileManagerLabel, WitTexts.Texts.ConfigurationFileNameLabel, "asset"); return(SaveConfiguration(savePath, serverToken, configurationAsset)); }
public static void UpdateData(this WitConfiguration configuration, Action onUpdateComplete = null) { DoUpdateData(configuration, onUpdateComplete); }