Toggle navigation
Toggle navigation
This project
Loading...
Sign in
liuming
/
developer-docs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
echo
2016-02-19 21:04:21 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
60e7261b942fd87c9b5f172d4536b78bfe70263b
60e7261b
1 parent
f6f477bd
Updated 远程教学之流程消息 (markdown)
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
19 deletions
远程教学之流程消息.md
远程教学之流程消息.md
View file @
60e7261
...
...
@@ -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
...
...
Please
register
or
login
to post a comment