public string GetXmlString(StanzaType parent, StanzaType child, string data = null, string to = null, string from = null) { return(_node[parent.ToString().ToLower()][child.ToString().ToLower()].ToString() .Replace(Message.DataTemplate, data).Replace(Message.TagToTemplate, to) .Replace(Message.TagFromTemplate, from)); }
// Для вытаскивания json-подтипов protected string GetChild(Enum type) { return(_node[_type.ToString().ToLower()][type.ToString().ToLower()]); }
public Stanza(StanzaType type) : this() { _type = type; _xmlData = _node[type.ToString().ToLower()]; }