public class PolyvVlmsManager
extends java.lang.Object
构造器和说明 |
---|
PolyvVlmsManager(android.content.Context context) |
限定符和类型 | 方法和说明 |
---|---|
<any> |
addNewAnswer_t(java.lang.String school_id,
java.lang.String course_id,
java.lang.String question_id,
java.lang.String user_id,
java.lang.String content,
java.lang.String access_token,
PolyvVlmsApiListener.AddNewAnswerListener listener) |
<any> |
addNewAnswer(java.lang.String school_id,
java.lang.String course_id,
java.lang.String question_id,
java.lang.String user_id,
java.lang.String content,
java.lang.String access_token,
PolyvVlmsApiListener.AddNewAnswerListener listener)
添加新回复(前提条件:已登录(未登录会返回access_token错误),已购买(未购买会返回添加失败))
|
<any> |
addNewQuestion_t(java.lang.String school_id,
java.lang.String course_id,
java.lang.String user_id,
java.lang.String title,
java.lang.String content,
java.lang.String access_token,
PolyvVlmsApiListener.AddNewQuestionListener listener) |
<any> |
addNewQuestion(java.lang.String school_id,
java.lang.String course_id,
java.lang.String user_id,
java.lang.String title,
java.lang.String content,
java.lang.String access_token,
PolyvVlmsApiListener.AddNewQuestionListener listener)
添加新问题(前提条件:已登录(未登录会返回access_token错误),已购买(未购买会返回添加失败))
|
<any> |
addOrder_t(java.lang.String school_id,
java.lang.String user_id,
java.lang.String course_id,
java.lang.String payment_type,
java.lang.String trading_note,
java.lang.String access_token,
PolyvVlmsApiListener.AddOrderListener listener) |
<any> |
addOrder(java.lang.String school_id,
java.lang.String user_id,
java.lang.String course_id,
java.lang.String payment_type,
java.lang.String access_token,
PolyvVlmsApiListener.AddOrderListener listener) |
<any> |
addOrder(java.lang.String school_id,
java.lang.String user_id,
java.lang.String course_id,
java.lang.String payment_type,
java.lang.String trading_note,
java.lang.String access_token,
PolyvVlmsApiListener.AddOrderListener listener)
添加订单(前提条件:已登录(未登录会返回access_token错误))
|
<any> |
getAccessToken_t(java.lang.String api_id,
java.lang.String school_id,
java.lang.String key,
PolyvVlmsApiListener.GetAccessTokenListener listener) |
<any> |
getAccessToken(java.lang.String api_id,
java.lang.String school_id,
java.lang.String key,
PolyvVlmsApiListener.GetAccessTokenListener listener)
获取accessToken,有效期为两个小时
|
<any> |
getAnswer_t(java.lang.String school_id,
java.lang.String question_id,
java.lang.String access_token,
PolyvVlmsApiListener.GetAnswerListener listener) |
<any> |
getAnswer(java.lang.String school_id,
java.lang.String question_id,
java.lang.String access_token,
PolyvVlmsApiListener.GetAnswerListener listener)
获取回复
|
<any> |
getCourseDetail_t(java.lang.String school_id,
java.lang.String courseId,
java.lang.String is_detail,
java.lang.String access_token,
PolyvVlmsApiListener.GetCourseDetailListener listener) |
<any> |
getCourseDetail(java.lang.String school_id,
java.lang.String courseId,
java.lang.String access_token,
PolyvVlmsApiListener.GetCourseDetailListener listener) |
<any> |
getCourseDetail(java.lang.String school_id,
java.lang.String courseId,
java.lang.String is_detail,
java.lang.String access_token,
PolyvVlmsApiListener.GetCourseDetailListener listener)
获取课程详情
|
<any> |
getCourses_t(java.lang.String school_id,
java.lang.String category_id,
java.lang.String is_free,
java.lang.String type,
int page,
int page_size,
java.lang.String access_token,
PolyvVlmsApiListener.GetCoursesListener listener) |
<any> |
getCourses(java.lang.String school_id,
int page,
int page_size,
java.lang.String access_token,
PolyvVlmsApiListener.GetCoursesListener listener) |
<any> |
getCourses(java.lang.String school_id,
java.lang.String category_id,
java.lang.String is_free,
java.lang.String type,
int page,
int page_size,
java.lang.String access_token,
PolyvVlmsApiListener.GetCoursesListener listener)
获取课程
|
<any> |
getCurriculum_t(java.lang.String school_id,
java.lang.String course_id,
java.lang.String user_id,
java.lang.String access_token,
PolyvVlmsApiListener.GetCurriculumListener listener) |
<any> |
getCurriculum(java.lang.String school_id,
java.lang.String course_id,
java.lang.String access_token,
PolyvVlmsApiListener.GetCurriculumListener listener) |
<any> |
getCurriculum(java.lang.String school_id,
java.lang.String course_id,
java.lang.String user_id,
java.lang.String access_token,
PolyvVlmsApiListener.GetCurriculumListener listener)
获取课程的课时
|
<any> |
getQuestion_t(java.lang.String school_id,
java.lang.String course_id,
java.lang.String access_token,
PolyvVlmsApiListener.GetQuestionListener listener) |
<any> |
getQuestion(java.lang.String school_id,
java.lang.String course_id,
java.lang.String access_token,
PolyvVlmsApiListener.GetQuestionListener listener)
获取问题
|
<any> |
login_t(java.lang.String school_id,
java.lang.String account,
java.lang.String password,
java.lang.String access_token,
PolyvVlmsApiListener.LoginListener listener) |
<any> |
login(java.lang.String school_id,
java.lang.String account,
java.lang.String password,
java.lang.String access_token,
PolyvVlmsApiListener.LoginListener listener)
登录
|
<any> |
refreshAccessToken_t(java.lang.String api_id,
java.lang.String refresh_token,
java.lang.String school_id,
java.lang.String key,
PolyvVlmsApiListener.GetAccessTokenListener listener) |
<any> |
refreshAccessToken(java.lang.String api_id,
java.lang.String refresh_token,
java.lang.String school_id,
java.lang.String key,
PolyvVlmsApiListener.GetAccessTokenListener listener)
刷新accessToken,有效期暂定7天
|
public <any> getAccessToken(java.lang.String api_id, java.lang.String school_id, java.lang.String key, PolyvVlmsApiListener.GetAccessTokenListener listener)
api_id
- 网校的学校api_id,获取方式参考PolyvVlmsTestData
school_id
- 网校的学校id,获取方式参考PolyvVlmsTestData
key
- 网校的key,获取方式参考PolyvVlmsTestData
listener
- 监听器public <any> getAccessToken_t(java.lang.String api_id, java.lang.String school_id, java.lang.String key, PolyvVlmsApiListener.GetAccessTokenListener listener) throws java.lang.Exception
java.lang.Exception
public <any> refreshAccessToken(java.lang.String api_id, java.lang.String refresh_token, java.lang.String school_id, java.lang.String key, PolyvVlmsApiListener.GetAccessTokenListener listener)
api_id
- refresh_token
- school_id
- key
- listener
- public <any> refreshAccessToken_t(java.lang.String api_id, java.lang.String refresh_token, java.lang.String school_id, java.lang.String key, PolyvVlmsApiListener.GetAccessTokenListener listener) throws java.lang.Exception
java.lang.Exception
public <any> getCourses(java.lang.String school_id, int page, int page_size, java.lang.String access_token, PolyvVlmsApiListener.GetCoursesListener listener)
public <any> getCourses(java.lang.String school_id, java.lang.String category_id, java.lang.String is_free, java.lang.String type, int page, int page_size, java.lang.String access_token, PolyvVlmsApiListener.GetCoursesListener listener)
school_id
- category_id
- is_free
- 是否免费课程:Y(是)、N(否)type
- 课程类型:RECOMMEND(推荐课程)、POPULAR(热门课程)、DEFAULT(默认课程,按最新创建时间降序排列)page
- page_size
- access_token
- listener
- public <any> getCourses_t(java.lang.String school_id, java.lang.String category_id, java.lang.String is_free, java.lang.String type, int page, int page_size, java.lang.String access_token, PolyvVlmsApiListener.GetCoursesListener listener) throws java.lang.Exception
java.lang.Exception
public <any> getCourseDetail(java.lang.String school_id, java.lang.String courseId, java.lang.String access_token, PolyvVlmsApiListener.GetCourseDetailListener listener)
public <any> getCourseDetail(java.lang.String school_id, java.lang.String courseId, java.lang.String is_detail, java.lang.String access_token, PolyvVlmsApiListener.GetCourseDetailListener listener)
school_id
- courseId
- is_detail
- access_token
- listener
- public <any> getCourseDetail_t(java.lang.String school_id, java.lang.String courseId, java.lang.String is_detail, java.lang.String access_token, PolyvVlmsApiListener.GetCourseDetailListener listener) throws java.lang.Exception
java.lang.Exception
public <any> login(java.lang.String school_id, java.lang.String account, java.lang.String password, java.lang.String access_token, PolyvVlmsApiListener.LoginListener listener)
school_id
- account
- password
- access_token
- listener
- public <any> login_t(java.lang.String school_id, java.lang.String account, java.lang.String password, java.lang.String access_token, PolyvVlmsApiListener.LoginListener listener) throws java.lang.Exception
java.lang.Exception
public <any> getCurriculum(java.lang.String school_id, java.lang.String course_id, java.lang.String access_token, PolyvVlmsApiListener.GetCurriculumListener listener)
public <any> getCurriculum(java.lang.String school_id, java.lang.String course_id, java.lang.String user_id, java.lang.String access_token, PolyvVlmsApiListener.GetCurriculumListener listener)
school_id
- course_id
- user_id
- 需要登录才能获取access_token
- listener
- public <any> getCurriculum_t(java.lang.String school_id, java.lang.String course_id, java.lang.String user_id, java.lang.String access_token, PolyvVlmsApiListener.GetCurriculumListener listener) throws java.lang.Exception
java.lang.Exception
public <any> addOrder(java.lang.String school_id, java.lang.String user_id, java.lang.String course_id, java.lang.String payment_type, java.lang.String access_token, PolyvVlmsApiListener.AddOrderListener listener)
public <any> addOrder(java.lang.String school_id, java.lang.String user_id, java.lang.String course_id, java.lang.String payment_type, java.lang.String trading_note, java.lang.String access_token, PolyvVlmsApiListener.AddOrderListener listener)
school_id
- user_id
- course_id
- payment_type
- WEIXIN(微信支付)、BALANCE(余额支付)、ALIPAY(支付宝)、FREE(免费课程)trading_note
- access_token
- listener
- public <any> addOrder_t(java.lang.String school_id, java.lang.String user_id, java.lang.String course_id, java.lang.String payment_type, java.lang.String trading_note, java.lang.String access_token, PolyvVlmsApiListener.AddOrderListener listener) throws java.lang.Exception
java.lang.Exception
public <any> getQuestion(java.lang.String school_id, java.lang.String course_id, java.lang.String access_token, PolyvVlmsApiListener.GetQuestionListener listener)
school_id
- course_id
- access_token
- listener
- public <any> getQuestion_t(java.lang.String school_id, java.lang.String course_id, java.lang.String access_token, PolyvVlmsApiListener.GetQuestionListener listener) throws java.lang.Exception
java.lang.Exception
public <any> getAnswer(java.lang.String school_id, java.lang.String question_id, java.lang.String access_token, PolyvVlmsApiListener.GetAnswerListener listener)
school_id
- question_id
- access_token
- listener
- public <any> getAnswer_t(java.lang.String school_id, java.lang.String question_id, java.lang.String access_token, PolyvVlmsApiListener.GetAnswerListener listener) throws java.lang.Exception
java.lang.Exception
public <any> addNewQuestion(java.lang.String school_id, java.lang.String course_id, java.lang.String user_id, java.lang.String title, java.lang.String content, java.lang.String access_token, PolyvVlmsApiListener.AddNewQuestionListener listener)
school_id
- course_id
- user_id
- title
- content
- access_token
- listener
- public <any> addNewQuestion_t(java.lang.String school_id, java.lang.String course_id, java.lang.String user_id, java.lang.String title, java.lang.String content, java.lang.String access_token, PolyvVlmsApiListener.AddNewQuestionListener listener) throws java.lang.Exception
java.lang.Exception
public <any> addNewAnswer(java.lang.String school_id, java.lang.String course_id, java.lang.String question_id, java.lang.String user_id, java.lang.String content, java.lang.String access_token, PolyvVlmsApiListener.AddNewAnswerListener listener)
school_id
- course_id
- question_id
- user_id
- content
- access_token
- listener
- public <any> addNewAnswer_t(java.lang.String school_id, java.lang.String course_id, java.lang.String question_id, java.lang.String user_id, java.lang.String content, java.lang.String access_token, PolyvVlmsApiListener.AddNewAnswerListener listener) throws java.lang.Exception
java.lang.Exception