4.2.0 • Published 5 years ago

@random-guys/lux v4.2.0

Weekly downloads
35
License
ISC
Repository
github
Last release
5 years ago

lux

Calling methods using node-soap could be something sometimes, so we replace it will classes and methods

How to install

yarn add @random-guys/lux

How does it work

Assume a service request

<House>
  <Tools>
    <Electric>
      <Longitude>32.3</Longitude>
      <Latitude>6.3</Latitude>
    </Electric>
  </Tools>
</House>

With this response

<ElectricResult>
  <response> 00 | Open successful</response>
</ElectricResult>
interface Position {
  long: number;
  lat: number;
}

class MyService extends AutoService {
  openMyFridge(pos: Position) {
    return this.callFormatted(
      false,
      {
        Longitude: pos.long,
        Latitude: pos.lat
      },
      "House",
      "Tools",
      "Electric"
    );
  }
}
  • Method callEmbedded doesn't try to check for a status/error code
  • Method call returns the method without parsing anything
4.2.0

5 years ago

4.1.0

6 years ago

4.0.0

6 years ago

3.2.1

6 years ago

3.2.0

6 years ago

3.1.0

6 years ago

3.0.4

6 years ago

3.0.3

6 years ago

3.0.2

6 years ago

3.0.1

6 years ago

3.0.0

6 years ago

2.0.0

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago