BroadcastMessage » 이력 » 버전 5
이름없음, 2021/06/09 08:11
1 | 1 | 이름없음 | h1. BroadcastMessage |
---|---|---|---|
2 | 2 | 이름없음 | |
3 | h2. %{color: #000000;}요청 필드% |
||
4 | |||
5 | <pre><code class="c"> |
||
6 | broadcastMessage( |
||
7 | messageBroadcaseRequest: MessageBroadcaseRequest |
||
8 | ): MessageResponse |
||
9 | </code></pre> |
||
10 | |||
11 | *%{color: #000000;}MessageBroadcaseRequest%* |
||
12 | |||
13 | 1 | 이름없음 | | %{color: #000000;}field% | %{color: #000000;}type% | %{color: #000000;}description% | |
14 | 3 | 이름없음 | | %{color: #000000;}command% | %{color: #000000;}String% | %{color: #000000;}요청 Command 유형 (값: "broadcastMessage")% | |
15 | 2 | 이름없음 | | %{color: #000000;}did% | %{color: #000000;}String% | %{color: #000000;}snplab의 did% | |
16 | | message | %{color: #000000;}String% | 메시지 내용 | |
||
17 | |||
18 | *%{color: #000000;}MessageResponse%* |
||
19 | |||
20 | 1 | 이름없음 | | %{color: #000000;}field% | %{color: #000000;}type% | %{color: #000000;}description% | |
21 | 5 | 이름없음 | | %{color: #000000;}command% | %{color: #000000;}String% | %{color: #000000;}요청 Command 유형% | |
22 | 2 | 이름없음 | | %{color: #000000;}result% | %{color: #000000;}String% | %{color: #000000;} % | |
23 | |||
24 | *%{color: #000000;}요청 예시%* |
||
25 | |||
26 | <pre> |
||
27 | 1 | 이름없음 | mutation{ |
28 | 2 | 이름없음 | broadcastMessage(messageBroadcaseRequest:{ |
29 | 3 | 이름없음 | command:"broadcastMessage" |
30 | did:"NfoPEFaG1adkCpijR85L66" |
||
31 | message:"{\"data\": {\"Command\": 0,\"Notification\": {\"Title\": \"타이틀\",\"Content\": \"상세 메시지\",\"OnGoing\": false,\"Priority\": 0,\"ImageUrl\": \"https://\",\"ShowBadge\": false},\"MoveTo\": 0,\"AppUpdate\": {\"TargetVersion\": 21010601,\"IsMandatory\": true},\"DataUpdate\": {\"Target\": 0},\"DataCollect\": {\"Type\": 1,\"ProposalID\": \"*\"}}}" |
||
32 | 2 | 이름없음 | }){ |
33 | command |
||
34 | 1 | 이름없음 | result |
35 | } |
||
36 | }</pre> |
||
37 | 2 | 이름없음 | |
38 | *%{color: #000000;}응답 예시%* |
||
39 | 3 | 이름없음 | |
40 | <pre> |
||
41 | { |
||
42 | 2 | 이름없음 | "data": { |
43 | "broadcastMessage": { |
||
44 | "command": "broadcastMessage", |
||
45 | 3 | 이름없음 | "result": "projects/myd-ldp-cd19d/messages/5757905970412779996" |
46 | 2 | 이름없음 | } |
47 | } |
||
48 | }</pre> |