internal Dictionary<string, AbstractPermission> toOptions(string[] response)
{
if (response == null || response.Length == 0)
{
return null;
}
Dictionary<string, AbstractPermission> result = new Dictionary<string, AbstractPermission>(response.Length);
for (int i = 0; i < response.Length; i++)
{
string[] flds = StringUtils.split(response[i], StringUtils.CARET);
if (!result.ContainsKey(flds[0]))
{
MenuOption opt = toOption(response[i]);
//addOptionFields(opt);
result.Add(flds[0], opt);
}
}
return result;
}