init() public method

public init ( RestSharp.RestClient restClient ) : void
restClient RestSharp.RestClient
return void
コード例 #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));
            }
        }
コード例 #2
0
        public void DoWork()
        {
            callbackService.init(restClient);

            // call GetStatus to see if the service is connected...
        }
コード例 #3
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));
            }
        }