| 1234567891011121314151617181920212223242526272829303132 |
- import 'package:trackoffical_app/model/m_net_image.dart';
- import 'cp_extra_info.dart';
- import 'package:trackoffical_app/pb.dart' as pb;
- class CPExtraInfoChoiceQuestion extends CPExtraInfo{
- String question='';
- List<String> answers=[];
- int rightIndex=0;
- int beanCount = 0;
- int qid = 0;
- MNetImage? image;
- }
- extension ControlPointInfoExt on pb.ControlPointDisplayInfoSingleChoice{
- CPExtraInfo toModel(){
- MNetImage? mImage;
- if(hasImage()){
- mImage = image.toModel();
- }
- return CPExtraInfoChoiceQuestion()
- ..question= question
- ..answers = answer
- ..rightIndex=rightAnswerIndex
- ..qid=qbId
- ..image=mImage
- ;
- }
- }
|