override protected MetlConfiguration internalGetConfigFor(MeTLConfigurationProxy server)
 {
     return internalConfigs[server];
 }
 override protected MetlConfiguration internalGetConfigFor(MeTLConfigurationProxy server)
 {
     throw new NotImplementedException();
 }
 public List<MetlConfiguration> parseConfig(MeTLConfigurationProxy server, XElement doc)
 {
     var cc = doc.Descendants("clientconfig");
     var xmppDomain = cc.Descendants("xmppdomain").First().Value;
     var xmppUsername = cc.Descendants("xmppusername").First().Value;
     var xmppPassword = cc.Descendants("xmpppassword").First().Value;
     var imageUrl = cc.Descendants("imageurl").First().Value;
     return new List<MetlConfiguration>
     {
         new MetlConfiguration(server.name,server.imageUrl.ToString(),xmppDomain,xmppUsername,xmppPassword,server.host)
     };
 }
 public List<MetlConfiguration> parseConfig(MeTLConfigurationProxy server, HTMLDocument doc)
 {
     var authDataContainer = doc.getElementById("authData");
     if (authDataContainer == null)
     {
         return new List<MetlConfiguration>();
     }
     var html = authDataContainer.innerHTML;
     if (html == null)
     {
         return new List<MetlConfiguration>();
     }
     var xml = XDocument.Parse(html).Elements().ToList();
     var cc = getElementsByTag(xml, "clientConfig");
     var xmppDomain = getElementsByTag(cc, "xmppDomain").First().Value;
     var xmppUsername = getElementsByTag(cc, "xmppUsername").First().Value;
     var xmppPassword = getElementsByTag(cc, "xmppPassword").First().Value;
     var imageUrl = getElementsByTag(cc, "imageUrl").First().Value;
     return new List<MetlConfiguration>
     {
         new MetlConfiguration(server.name,server.imageUrl.ToString(),xmppDomain,xmppUsername,xmppPassword,server.host)
     };
 }
 protected abstract MetlConfiguration internalGetConfigFor(MeTLConfigurationProxy server);
 public MetlConfiguration getConfigFor(MeTLConfigurationProxy server)
 {
     return internalGetConfigFor(server);
 }