Parser-JavaScript icon indicating copy to clipboard operation
Parser-JavaScript copied to clipboard

device.identified is an integer

Open perqa opened this issue 3 years ago • 1 comments

It looks like device.identified is an integer, not a boolean, as it says in the ReadMe. Is there any significance to the number?

"device": {
    "type": "gaming",
    "subtype": "console",
    "identified": 4,
    "generic": false,
    "hidden": false,
    "manufacturer": "Sony",
    "model": "PlayStation 4",
    "series": null,
    "carrier": null,
    "identifier": null
  },

perqa avatar Nov 17 '22 08:11 perqa

Hello, you are correct. The integer come from this mapping src/constants/id.js. You can still threat it as a boolean since 0 and undefined means not identified while any other integer means identified.

I will however change the typings and the Readme.

mariotsi avatar Nov 01 '23 17:11 mariotsi