private void InferGatewayType() { if (Identifier.BareIdentifier.StartsWith("aim")) { type = XmppGatewayType.Aim; } else if (Identifier.BareIdentifier.StartsWith("facebook")) { type = XmppGatewayType.Facebook; } else if (Identifier.BareIdentifier.StartsWith("gadugadu")) { type = XmppGatewayType.GaduGadu; } else if (Identifier.BareIdentifier.StartsWith("gtalk")) { type = XmppGatewayType.GTalk; } else if (Identifier.BareIdentifier.StartsWith("http-ws")) { type = XmppGatewayType.HttpWs; } else if (Identifier.BareIdentifier.StartsWith("icq")) { type = XmppGatewayType.Icq; } else if (Identifier.BareIdentifier.StartsWith("lcs")) { type = XmppGatewayType.Lcs; } else if (Identifier.BareIdentifier.StartsWith("mrim")) { type = XmppGatewayType.Mrim; } else if (Identifier.BareIdentifier.StartsWith("msn")) { type = XmppGatewayType.Msn; } else if (Identifier.BareIdentifier.StartsWith("myspaceim")) { type = XmppGatewayType.MySpaceIm; } else if (Identifier.BareIdentifier.StartsWith("ocs")) { type = XmppGatewayType.Ocs; } else if (Identifier.BareIdentifier.StartsWith("qq")) { type = XmppGatewayType.QQ; } else if (Identifier.BareIdentifier.StartsWith("sametime")) { type = XmppGatewayType.Sametime; } else if (Identifier.BareIdentifier.StartsWith("simple")) { type = XmppGatewayType.Simple; } else if (Identifier.BareIdentifier.StartsWith("skype")) { type = XmppGatewayType.Skype; } else if (Identifier.BareIdentifier.StartsWith("sms")) { type = XmppGatewayType.Sms; } else if (Identifier.BareIdentifier.StartsWith("smtp")) { type = XmppGatewayType.Smtp; } else if (Identifier.BareIdentifier.StartsWith("tlen")) { type = XmppGatewayType.Tlen; } else if (Identifier.BareIdentifier.StartsWith("xfire")) { type = XmppGatewayType.Xfire; } else if (Identifier.BareIdentifier.StartsWith("xmpp")) { type = XmppGatewayType.Xmpp; } else if (Identifier.BareIdentifier.StartsWith("yahoo")) { type = XmppGatewayType.Yahoo; } }