Exemplo n.º 1
0
 public PairingRequestMessage(PairingRequest pr, string remoteApplicationID, string remoteSourceSdk)
 {
     this.method              = "PAIRING_REQUEST";
     this.payload             = JsonUtils.Serialize(pr);
     this.remoteApplicationID = remoteApplicationID;
     this.remoteSourceSDK     = remoteSourceSdk;
 }
        private void SendPairingRequest()
        {
            isPairing = true;
            PairingRequest pr = new PairingRequest();

            pr.name = this.posName;
            pr.authenticationToken = this.pairingAuthToken;
            pr.serialNumber        = this.serialNumber;

            PairingRequestMessage prm = new PairingRequestMessage(pr);

            sendMessage(JsonUtils.serialize(prm));
        }
        private void SendPairingRequest()
        {
            isPairing = true;
            PairingRequest pr = new PairingRequest();

            pr.name = this.posName;
            pr.authenticationToken = this.pairingAuthToken;
            pr.serialNumber        = this.serialNumber;

            PairingRequestMessage prm = new PairingRequestMessage(pr, cloverDeviceConfiguration.getRemoteApplicationID(), cloverDeviceConfiguration.getRemoteSdk(this));

            sendMessage(JsonUtils.Serialize(prm));
        }
 public PairingRequestMessage(PairingRequest pr)
 {
     method  = "PAIRING_REQUEST";
     payload = JsonUtils.serialize(pr);
 }