echo

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

... ... @@ -20,25 +20,31 @@
### 流程消息定义
* 开始课程(教师端动作)
```
type:flow
command:beginCourse
{
"type":"flow",
"command":"beginCourse"
}
```
* 接受课程(学生端动作)
```
type:flow
command:acceptCourse
{
"type":"flow",
"command":"acceptCourse"
}
```
* 下发课程资源信息与教师端元数据(教师端动作)
```
type:flow
command:prepareCourse
screenWidth:屏幕宽度
screenHeight:屏幕高度
device:ios
appVersion:6.6.0
attachmentType:smallFile
{
"type":"flow",
"command":"prepareCourse",
"screenWidth":1024,
"screenHeight":768,
"device":"ios"
"appVersion":"6.6.0"
"attachmentType":"smallFile"
}
```
附属的小文件是一个Json格式的资源列表
... ... @@ -55,21 +61,27 @@ fc5545a9a728904dc533efcbfff1d2c5,
* 学生端已经下载好课程所需要的资源(学生端动作)
```
type:flow
command:downloadedAllCourseResources
{
"type":"flow",
"command":"downloadedAllCourseResources"
}
```
* 发送课程页信息(教师端动作)
```
type:flow
command:coursePage
attachmentType:smallFile
{
"type":"flow",
"command":"coursePage",
"attachmentType":"smallFile"
}
```
附属的小文件是一个Json格式的页面信息
(考虑到将来如果页面比较复杂,或者附加了比较长的文章,可能出现当个页面信息过长,不适合发送自定义信息的情况)
* 结束课程(教师端动作)
```
type:flow
command:endCourse
```
{
"type":"flow",
"command":"endCourse"
}
```
\ No newline at end of file
... ...