EMSTrack / WebServerAndClient

Home of the web server and its clients
BSD 3-Clause "New" or "Revised" License
2 stars 3 forks source link

Finalize mqtt topics and handshake for mobile accepting calls. #36

Closed mcdeoliveira closed 5 years ago

mcdeoliveira commented 6 years ago

As discussed in class, call information should be published in the topic:

call/{call-id}/data

This can be directly from the call serializer. Ambulances get notified of the call by publishing to:

ambulance/{ambulance-id}/call/{call-id}/data

for each ambulance involved in the call. Users get access to the call topic if they can read/write on an ambulance. Information published here could be the one from the CallTimes serializer.

Clients modify the call times by publishing to

user/{username}/client/{client-id}/ambulance/{ambulance-id}/call/{call-id}/data

Permissions are implemented in login.views.

zhl483 commented 6 years ago

I add call in default setting and user profile, and the topic call/{call-id}/data in the wiki based on what we have right now for the call function. Please let me know if I make any mistake.