Esempio n. 1
0
        public string GetUserValues(List <string> keys)
        {
            string values = "";

            foreach (var key in keys)
            {
                if (UserKeyValue.ContainsKey(key))
                {
                    values += @"\" + UserKeyValue[key];
                }
            }
            return(values);
        }
Esempio n. 2
0
 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]);
         }
     }
 }