Chimney.MPD.Classes.Message.Message C# (CSharp) Method

Message() public method

public Message ( string>.List keyValuePairList ) : System.Collections.Generic
keyValuePairList string>.List
return System.Collections.Generic
        public Message(List<KeyValuePair<string, string>> keyValuePairList)
        {
            if (keyValuePairList == null) return;

            foreach (var kv in keyValuePairList)
            {
                switch (kv.Key)
                {
                    case "message":
                        this.message = kv.Value;
                        break;
                    case "channel":
                        this.channel = new Channel(new List<KeyValuePair<string, string>>() { new KeyValuePair<string, string> ("channel", kv.Value ) });
                        break;
                    default:
                        break;
                }
            }
        }

Same methods

Message::Message ( string>.Dictionary dictionary ) : System.Collections.Generic
Message