Skip to content

Add missing fields to the user model - #302

Merged
stakach merged 1 commit into
PlaceOS:masterfrom
Hamada92:user-groups
Apr 14, 2022
Merged

Add missing fields to the user model#302
stakach merged 1 commit into
PlaceOS:masterfrom
Hamada92:user-groups

Conversation

@Hamada92

Copy link
Copy Markdown

This PR adds some missing fields to the user model in floorsense.

@w-le
w-le requested review from stakach and w-le April 13, 2022 06:00

@w-le w-le left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the fields aligns, apart from privacy which isn't in the floorsense docs (maybe it's new?)
https://apiguide.smartalock.com/#2b73222c-a86e-4cc2-8a12-d8d307adf3b1

Example Response from floorsense api

{
  "result": true,
  "type": "response",
  "info": {
    "email": "simon@amixcapital.com",
    "uid": "31344311",
    "usertype": "user",
    "pin": "8721",
    "name": "Simon Hope",
    "lastlogin": 1582692563,
    "expiry": 0,
    "extid": "9876543210987654321",
    "reslimit": 0,
    "uidtoken": "694433b85d6c7b2dd2c37c75a9c9a401",
    "desc": "#firstaid"
  }
}

@Hamada92

Copy link
Copy Markdown
Author

Thanks @w-le , if we keep the privacy one there, would it break anything?

@w-le

w-le commented Apr 13, 2022

Copy link
Copy Markdown
Contributor

yep I don't think it will break anything so I've approved the PR. We'll let @stakach review as well since he is much more familiar with this driver.

@stakach stakach left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@stakach
stakach merged commit cb64c9a into PlaceOS:master Apr 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants