| 类名 | 类描述 |
|---|---|
| VHExamObject | 快问快答类 |
| 方法 | 方法描述 |
|---|---|
| paperSendMessage | 推送快问快答 |
| paperEndMessage | 收卷 |
| paperSendRankMessage | 公布成绩 |
| paperAutoEndMessage | 自动收卷 |
| paperAutoEendRankMessage | 自动公布成绩 |
- (void)examUserFormCheckWithWebinar_id:(NSString *)webinar_id user_name:(NSString *)user_name head_img:(NSString *)head_img mobile:(NSString *)mobile complete:(void(^)(VHExamUserFormCheckModel * examUserFormCheckModel ,NSError * error))complete;| 参数名称 | 是否必须 | 示例 | 备注 |
|---|---|---|---|
| webinar_id | 是 | 123456789 | 活动 ID |
| user_name | 是 | 阿超 | 用户名 |
| head_img | 是 | https://xxx.png | 头像 |
| mobile | 是 | 132xxxxxxx | 手机号 |
| complete | 是 | 返回数据 | 完成回调 |
| 参数名称 | 备注 |
|---|---|
| is_answer | 是否已答题 0.否 1.是 |
| is_fill | 是否需要填写表单 0. 否 1.是 |
[self.examObject examUserFormCheckWithWebinar_id:self.webinar_id user_name:@"" head_img:@"" mobile:@"" complete:^(VHExamUserFormCheckModel *examUserFormCheckModel, NSError *error) {
if (examUserFormCheckModel) {
VH_ShowToast([examUserFormCheckModel.responseObject mj_JSONString]);
}
if (error) {
VH_ShowToast(error.localizedDescription);
}
}];- (void)examGetUserFormInfoWithWebinar_id:(NSString *)webinar_id paper_id:(NSString *)paper_id complete:(void(^)(VHExamGetUserFormInfoModel * examGetUserFormInfoModel ,NSError * error))complete;| 参数名称 | 是否必须 | 示例 | 备注 |
|---|---|---|---|
| webinar_id | 是 | 123456789 | 活动 ID |
| paper_id | 是 | 123456 | 试卷 ID |
| complete | 是 | 返回数据 | 完成回调 |
| 参数名称 | 备注 |
|---|---|
| form_data | 表单信息 |
| title | 试卷标题 |
| user_info | 用户填写信息 |
| guidelines | 答题须知 |
| extension | 拓展 |
[self.examObject examGetUserFormInfoWithWebinar_id:self.webinar_id paper_id:self.paperIDTF.text complete:^(VHExamGetUserFormInfoModel *examGetUserFormInfoModel, NSError *error) {
if (examGetUserFormInfoModel) {
VH_ShowToast([examGetUserFormInfoModel.responseObject mj_JSONString]);
self.user_detail = examGetUserFormInfoModel.form_data;
}
if (error) {
VH_ShowToast(error.localizedDescription);
}
}];- (void)examSendVerifyCodeWithWebinar_id:(NSString *)webinar_id paper_id:(NSString *)paper_id phone:(NSString *)phone country_code:(NSString *)country_code complete:(void(^)(VHExamSendVerifyCodeModel * examSendVerifyCodeModel ,NSError * error))complete;| 参数名称 | 是否必须 | 示例 | 备注 |
|---|---|---|---|
| webinar_id | 是 | 123456789 | 活动 ID |
| paper_id | 是 | 123456 | 试卷 ID |
| phone | 是 | 132xxxxxxxx | 手机号码 |
| country_code | 否 | CN | 国家码默认 CN |
| complete | 是 | 返回数据 | 完成回调 |
| 参数名称 | 备注 |
|---|---|
| status | 1 成功/0 失败 |
[self.examObject examSendVerifyCodeWithWebinar_id:self.webinar_id paper_id:self.paperIDTF.text phone:self.phoneTF.text country_code:@"" complete:^(VHExamSendVerifyCodeModel *examSendVerifyCodeModel, NSError *error) {
if (examSendVerifyCodeModel) {
VH_ShowToast([examSendVerifyCodeModel.responseObject mj_JSONString]);
}
if (error) {
VH_ShowToast(error.localizedDescription);
}
}];- (void)examVerifyCodeWithWebinar_id:(NSString *)webinar_id paper_id:(NSString *)paper_id phone:(NSString *)phone verify_code:(NSString *)verify_code country_code:(NSString *)country_code complete:(void(^)(VHExamVerifyCodeModel * examVerifyCodeModel ,NSError * error))complete;| 参数名称 | 是否必须 | 示例 | 备注 |
|---|---|---|---|
| webinar_id | 是 | 123456789 | 活动 ID |
| paper_id | 是 | 123456 | 试卷 ID |
| phone | 是 | 132xxxxxxxx | 手机号码 |
| verify_code | 是 | sad122 | 验证码 |
| country_code | 否 | CN | 国家码默认 CN |
| complete | 是 | 返回数据 | 完成回调 |
| 参数名称 | 备注 |
|---|---|
| status | 1 成功/0 失败 |
[self.examObject examVerifyCodeWithWebinar_id:self.webinar_id paper_id:self.paperIDTF.text phone:self.phoneTF.text verify_code:self.verifyCodeTF.text country_code:@"" complete:^(VHExamVerifyCodeModel * examVerifyCodeModel, NSError *error) {
if (examVerifyCodeModel) {
VH_ShowToast([examVerifyCodeModel.responseObject mj_JSONString]);
}
if (error) {
VH_ShowToast(error.localizedDescription);
}
}];- (void)examSaveUserFormWithWebinar_id:(NSString *)webinar_id user_detail:(NSString *)user_detail verify_code:(NSString *)verify_code complete:(void(^)(NSDictionary * responseObject ,NSError * error))complete;| 参数名称 | 是否必须 | 示例 | 备注 |
|---|---|---|---|
| webinar_id | 是 | 123456789 | 活动 ID |
| user_detail | 是 | {"16130":"分享","16131":"A"} | 用户提交 表单 json |
| verify_code | 是 | sad122 | 验证码 |
| complete | 是 | 返回数据 | 完成回调 |
[self.examObject examSaveUserFormWithWebinar_id:self.webinar_id user_detail:self.user_detail verify_code:self.verifyCodeTF.text complete:^(NSDictionary * responseObject, NSError * error) {
if (responseObject) {
VH_ShowToast([responseObject mj_JSONString]);
}
if (error) {
VH_ShowToast(error.localizedDescription);
}
}];