public string GetUserValues(List <string> keys) { string values = ""; foreach (var key in keys) { if (UserKeyValue.ContainsKey(key)) { values += @"\" + UserKeyValue[key]; } } return(values); }
public void UpdateUserKeyValues(Dictionary <string, string> data) { // TODO check if all key is send through the request or // TODO only updated key send through the request foreach (var key in data.Keys) { if (UserKeyValue.ContainsKey(key)) { //we update the key value UserKeyValue[key] = data[key]; } else { UserKeyValue.Add(key, data[key]); } } }