init() public method

public init ( RestSharp.RestClient restClient ) : void
restClient RestSharp.RestClient
return void
Ejemplo n.º 1
0
        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));
            }
        }
        public void DoWork()
        {
            callbackService.init(restClient);

            // call GetStatus to see if the service is connected...
        }
        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));
            }
        }