echo

Updated 远程教学之流程消息 (markdown)

@@ -20,25 +20,31 @@ @@ -20,25 +20,31 @@
20 ### 流程消息定义 20 ### 流程消息定义
21 * 开始课程(教师端动作) 21 * 开始课程(教师端动作)
22 ``` 22 ```
23 - type:flow 23 +{
24 - command:beginCourse 24 + "type":"flow",
  25 + "command":"beginCourse"
  26 +}
25 ``` 27 ```
26 28
27 * 接受课程(学生端动作) 29 * 接受课程(学生端动作)
28 ``` 30 ```
29 - type:flow 31 +{
30 - command:acceptCourse 32 + "type":"flow",
  33 + "command":"acceptCourse"
  34 +}
31 ``` 35 ```
32 36
33 * 下发课程资源信息与教师端元数据(教师端动作) 37 * 下发课程资源信息与教师端元数据(教师端动作)
34 ``` 38 ```
35 - type:flow 39 +{
36 - command:prepareCourse 40 + "type":"flow",
37 - screenWidth:屏幕宽度 41 + "command":"prepareCourse",
38 - screenHeight:屏幕高度 42 + "screenWidth":1024,
39 - device:ios 43 + "screenHeight":768,
40 - appVersion:6.6.0 44 + "device":"ios"
41 - attachmentType:smallFile 45 + "appVersion":"6.6.0"
  46 + "attachmentType":"smallFile"
  47 +}
42 ``` 48 ```
43 49
44 附属的小文件是一个Json格式的资源列表 50 附属的小文件是一个Json格式的资源列表
@@ -55,21 +61,27 @@ fc5545a9a728904dc533efcbfff1d2c5, @@ -55,21 +61,27 @@ fc5545a9a728904dc533efcbfff1d2c5,
55 61
56 * 学生端已经下载好课程所需要的资源(学生端动作) 62 * 学生端已经下载好课程所需要的资源(学生端动作)
57 ``` 63 ```
58 - type:flow 64 +{
59 - command:downloadedAllCourseResources 65 + "type":"flow",
  66 + "command":"downloadedAllCourseResources"
  67 +}
60 ``` 68 ```
61 69
62 * 发送课程页信息(教师端动作) 70 * 发送课程页信息(教师端动作)
63 ``` 71 ```
64 - type:flow 72 +{
65 - command:coursePage 73 + "type":"flow",
66 - attachmentType:smallFile 74 + "command":"coursePage",
  75 + "attachmentType":"smallFile"
  76 +}
67 ``` 77 ```
68 附属的小文件是一个Json格式的页面信息 78 附属的小文件是一个Json格式的页面信息
69 (考虑到将来如果页面比较复杂,或者附加了比较长的文章,可能出现当个页面信息过长,不适合发送自定义信息的情况) 79 (考虑到将来如果页面比较复杂,或者附加了比较长的文章,可能出现当个页面信息过长,不适合发送自定义信息的情况)
70 80
71 * 结束课程(教师端动作) 81 * 结束课程(教师端动作)
72 ``` 82 ```
73 - type:flow 83 +{
74 - command:endCourse 84 + "type":"flow",
75 -``` 85 + "command":"endCourse"
  86 +}
  87 +```