//-------------------------------------------------------------------------------------------------------------------- #endregion #region Constructor //-------------------------------------------------------------------------------------------------------------------- public NodePairingBackend(string frontendUrl, NodeConfig conf, OnPairedDelegate callback, OnPairingFailedDelegate onPairingFailedCB) { this.frontendUrl = frontendUrl; this.pairingPostUrl = frontendUrl + "/" + NodePairingConstants.PairingRootURI + "/" + PlegmaAPI.APIVersion; this.conf = conf; pairingState = PairingStates.Initial; this.onPaired += callback; this.onPairingFailed += onPairingFailedCB; }