-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathremote-control-pairing.plantuml
37 lines (34 loc) · 1.46 KB
/
remote-control-pairing.plantuml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
@startuml
title "Remote Control Pairing"
actor User
participant "Smartphone"
participant "SoundOnFire"
participant "Serverless Function"
participant "Remote Control Web App"
User -> "SoundOnFire": Open remote control pairing
activate "SoundOnFire"
"SoundOnFire" -> "Serverless Function": Post generated device ID
activate "Serverless Function"
"Serverless Function" -> "Serverless Function": Cache device ID
return Remote control pairing redirect URL
"SoundOnFire" -> "SoundOnFire": Show QR-Code using pairing redirect URL
"SoundOnFire" -> "Serverless Function": Polls pairing status
activate "Serverless Function"
return Pairing incomplete
"SoundOnFire" -> "Serverless Function": ...
activate "Serverless Function"
return ...
"User" -> "Smartphone": Uses Smartphone to scan QR-Code
activate "Smartphone"
"Smartphone" -> "SoundOnFire": Scan QR-Code
"SoundOnFire" -> "Smartphone": Remote control pairing redirect URL
"Smartphone" -> "Smartphone": Open remote control pairing URL
"Smartphone" -> "Serverless Function": Complete remote control pairing
activate "Serverless Function"
return Redirect to remote control web app
"SoundOnFire" -> "Serverless Function": Polls pairing status
activate "Serverless Function"
return Confirm pairing status
deactivate "SoundOnFire"
"Smartphone" -> "Remote Control Web App": Open remote control web app
@enduml