예제 #1
0
 //--------------------------------------------------------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;
 }
예제 #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();
        }
예제 #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();
        }