public RemoteRESTCloverConnector(CloverDeviceConfiguration config) { Thread workerThread = new Thread(DoWork); workerThread.IsBackground = true; callbackService = new CallbackController(this); workerThread.Start(); CardEntryMethod = CloverConnector.CARD_ENTRY_METHOD_ICC_CONTACT | CloverConnector.CARD_ENTRY_METHOD_MAG_STRIPE | CloverConnector.CARD_ENTRY_METHOD_NFC_CONTACTLESS; }
public void InitializeConnection() { if (callbackService == null) { callbackService = new CallbackController(this); callbackService.init(restClient); CardEntryMethod = CloverConnector.CARD_ENTRY_METHOD_ICC_CONTACT | CloverConnector.CARD_ENTRY_METHOD_MAG_STRIPE | CloverConnector.CARD_ENTRY_METHOD_NFC_CONTACTLESS; listeners.ForEach(listener => callbackService.AddListener(listener)); } }