//--------------------------------------------------------Constructor:----------------------------------------------------------------\\
 #region --Constructors--
 /// <summary>
 /// Basic Constructor
 /// </summary>
 /// <history>
 /// 15/08/2018 Created [Fabian Sauter]
 /// </history>
 public DiscoFeatureHelper(XMPPConnection2 connection)
 {
     CONNECTION = connection;
     connection.ConnectionStateChanged += Connection_ConnectionStateChanged;
     discoMessageResponseHelper         = null;
     carbonsMessageResponseHelper       = null;
 }
Example #2
0
        //--------------------------------------------------------Constructor:----------------------------------------------------------------\\
        #region --Constructors--
        /// <summary>
        /// Basic Constructor
        /// </summary>
        /// <history>
        /// 06/08/2018 Created [Fabian Sauter]
        /// </history>
        public OmemoHelper(XMPPConnection2 connection, IOmemoStore omemoStore)
        {
            CONNECTION  = connection;
            OMEMO_STORE = omemoStore;

            OMEMO_SESSIONS = new Dictionary <string, OmemoSession>();
            MESSAGE_CACHE  = new Dictionary <string, Tuple <List <OmemoMessageMessage>, OmemoSessionBuildHelper> >();

            reset();
        }
Example #3
0
        //--------------------------------------------------------Constructor:----------------------------------------------------------------\\
        #region --Constructors--
        /// <summary>
        /// Basic Constructor
        /// </summary>
        /// <history>
        /// 06/08/2018 Created [Fabian Sauter]
        /// </history>
        public OmemoHelper(XMPPConnection2 connection)
        {
            this.CONNECTION = connection;

            this.OMEMO_SESSIONS       = new Dictionary <string, OmemoSession>();
            this.MESSAGE_CACHE        = new Dictionary <string, Tuple <List <OmemoMessageMessage>, OmemoSessionBuildHelper> >();
            this.SESSION_STORE        = new OmemoSessionStore(connection.account);
            this.PRE_KEY_STORE        = new OmemoPreKeyStore(connection.account);
            this.SIGNED_PRE_KEY_STORE = new OmemoSignedPreKeyStore(connection.account);
            this.IDENTITY_STORE       = new OmemoIdentityKeyStore(connection.account);

            reset();
        }