示例#1
0
 //--------------------------------------------------------Set-, Get- Methods:---------------------------------------------------------\\
 #region --Set-, Get- Methods--
 private void setState(OmemoSessionBuildHelperState newState)
 {
     if (STATE != newState)
     {
         STATE = newState;
     }
 }
示例#2
0
 //--------------------------------------------------------Constructor:----------------------------------------------------------------\\
 #region --Constructors--
 /// <summary>
 /// Basic Constructor
 /// </summary>
 /// <history>
 /// 10/08/2018 Created [Fabian Sauter]
 /// </history>
 internal OmemoSessionBuildHelper(string chatJid, string bareAccountJid, string fullAccountJid, XMPPConnection2 connection, OmemoHelper omemoHelper)
 {
     this.CONNECTION       = connection;
     this.CHAT_JID         = chatJid;
     this.BARE_ACCOUNT_JID = bareAccountJid;
     this.FULL_ACCOUNT_JID = fullAccountJid;
     this.OMEMO_HELPER     = omemoHelper;
     this.STATE            = OmemoSessionBuildHelperState.NOT_STARTED;
 }
 //--------------------------------------------------------Constructor:----------------------------------------------------------------\\
 #region --Constructors--
 /// <summary>
 /// Basic Constructor
 /// </summary>
 /// <history>
 /// 10/08/2018 Created [Fabian Sauter]
 /// </history>
 internal OmemoSessionBuildHelper(string chatJid, string bareAccountJid, string fullAccountJid, XmppConnection connection, OmemoHelper omemoHelper)
 {
     CONNECTION       = connection;
     CHAT_JID         = chatJid;
     BARE_ACCOUNT_JID = bareAccountJid;
     FULL_ACCOUNT_JID = fullAccountJid;
     OMEMO_HELPER     = omemoHelper;
     STATE            = OmemoSessionBuildHelperState.NOT_STARTED;
 }
示例#4
0
 //--------------------------------------------------------Constructor:----------------------------------------------------------------\\
 #region --Constructors--
 internal OmemoSessionBuildHelper(string srcBareJid, string dstBareJid, XmppConnection connection, OmemoHelper omemoHelper, bool trustedSrcKeysOnly, bool trustedDstKeysOnly)
 {
     CONNECTION            = connection;
     SRC_BARE_JID          = srcBareJid;
     DST_BARE_JID          = dstBareJid;
     OMEMO_HELPER          = omemoHelper;
     TRUSTED_SRC_KEYS_ONLY = trustedSrcKeysOnly;
     TRUSTED_DST_KEYS_ONLY = trustedDstKeysOnly;
     STATE = OmemoSessionBuildHelperState.NOT_STARTED;
 }
示例#5
0
 //--------------------------------------------------------Constructor:----------------------------------------------------------------\\
 #region --Constructors--
 /// <summary>
 /// Basic Constructor
 /// </summary>
 /// <history>
 /// 10/08/2018 Created [Fabian Sauter]
 /// </history>
 internal OmemoSessionBuildHelper(string chatJid, string bareAccountJid, string fullAccountJid, Action <OmemoSessionBuildHelper, OmemoSessionBuildResult> onSessionResult, XMPPConnection2 connection, OmemoHelper omemoHelper)
 {
     this.CONNECTION              = connection;
     this.ON_SESSION_RESULT       = onSessionResult;
     this.CHAT_JID                = chatJid;
     this.BARE_ACCOUNT_JID        = bareAccountJid;
     this.FULL_ACCOUNT_JID        = fullAccountJid;
     this.OMEMO_HELPER            = omemoHelper;
     this.STATE                   = OmemoSessionBuildHelperState.NOT_STARTED;
     this.requestDeviceListHelper = null;
     this.requestBundleInfoHelper = null;
     this.SESSION                 = new OmemoSession(chatJid);
     this.curAddress              = null;
 }