Ejemplo n.º 1
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]);
         }
     }
 }
Ejemplo n.º 2
0
        public void SetDefaultProperties(bool isCreator = false, bool isOperator = false)
        {
            IsVoiceable       = true;
            IsChannelCreator  = isCreator;
            IsChannelOperator = isOperator;
            UserKeyValue.Add("username", Info.UserName);
            // UserKeyValue.Add("b_flags", "");

            // if (isCreator)
            // {
            //     UserKeyValue.Add("b_flags", "sh");
            // }
            // else
            // {
            //     UserKeyValue.Add("b_flags", "s");
            // }
        }