Esempio n. 1
0
 public CommandParser(MessagingManager messagingManager)
 {
 }
Esempio n. 2
0
        public void init(string sJsonConfig, string sHexAES256Key)
        {
            string sJson = AesGcmCryptor.SimpleDecrypt(sJsonConfig, Helpers.hexStringToByteArray(sHexAES256Key));
            CommandParserConfig config = JsonConvert.DeserializeObject<CommandParserConfig>(sJson);

            m_MessagingManager = new MessagingManager (
                config.authInfo,
                config.emailServiceDescription,
                config.openPgpRing,
                config.xmppServiceDescription,
                config.otrKeyring,
                config.addressBook,
                config.logger,
                config.inboxCheckIntervall,
                config.isInMinutes
            );

            //TODO: add notificationsender to messagingmanager
            m_NotificationSender = new TcpClient ("localhost", 18099);
        }