TargetMessage » 이력 » 버전 3
이름없음, 2021/06/04 07:47
1 | 1 | 이름없음 | h1. TargetMessage |
---|---|---|---|
2 | 2 | 이름없음 | |
3 | h2. %{color: #000000;}요청 필드% |
||
4 | |||
5 | <pre><code class="c"> |
||
6 | targetMessage( |
||
7 | messageTargetRequest: MessageTargetRequest |
||
8 | ): MessageResponse |
||
9 | </code></pre> |
||
10 | |||
11 | *%{color: #000000;}MessageTargetRequest%* |
||
12 | |||
13 | | %{color: #000000;}field% | %{color: #000000;}type% | %{color: #000000;}description% | |
||
14 | 3 | 이름없음 | | %{color: #000000;}command% | %{color: #000000;}String% | %{color: #000000;}요청 Command 유형 (값: "targetMessage")% | |
15 | 2 | 이름없음 | | %{color: #000000;}did% | %{color: #000000;}String% | %{color: #000000;}snplab의 did% | |
16 | | message | %{color: #000000;}String% | 메시지 내용 | |
||
17 | | target | %{color: #000000;}String% | 메시지 수신 대상 | |
||
18 | |||
19 | *%{color: #000000;}MessageResponse%* |
||
20 | |||
21 | | %{color: #000000;}field% | %{color: #000000;}type% | %{color: #000000;}description% | |
||
22 | | %{color: #000000;}command% | %{color: #000000;}String% | %{color: #000000;}요청Command 유형% | |
||
23 | 3 | 이름없음 | | %{color: #000000;}result% | %{color: #000000;}String% | %{color: #000000;} % | |
24 | 2 | 이름없음 | |
25 | *%{color: #000000;}요청 예시%* |
||
26 | |||
27 | <pre> |
||
28 | mutation{ |
||
29 | targetMessage(messageTargetRequest:{ |
||
30 | did:"NfoPEFaG1adkCpijR85L66" |
||
31 | command:"targetMessage" |
||
32 | target:"did:NfoPEFaG1adkCpijR85L66" |
||
33 | 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\": \"*\"}}}" |
||
34 | }){ |
||
35 | command |
||
36 | result |
||
37 | } |
||
38 | }</pre> |
||
39 | |||
40 | *%{color: #000000;}응답 예시%* |
||
41 | 예시 없음 |