You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							45 lines
						
					
					
						
							1.1 KiB
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							45 lines
						
					
					
						
							1.1 KiB
						
					
					
				
								import 'package:hadi_hoda_flutter/core/constants/my_constants.dart';
							 | 
						|
								import 'package:hadi_hoda_flutter/core/utils/local_storage.dart';
							 | 
						|
								import 'package:hadi_hoda_flutter/core/utils/storage_path.dart';
							 | 
						|
								import 'package:hadi_hoda_flutter/features/question/domain/entity/file_entity.dart';
							 | 
						|
								import 'package:hive/hive.dart';
							 | 
						|
								
							 | 
						|
								part 'answer_entity.g.dart';
							 | 
						|
								
							 | 
						|
								@HiveType(typeId: 3)
							 | 
						|
								class AnswerEntity extends HiveObject {
							 | 
						|
								  @HiveField(0)
							 | 
						|
								  int? id;
							 | 
						|
								  @HiveField(1)
							 | 
						|
								  String? title;
							 | 
						|
								  @HiveField(2)
							 | 
						|
								  String? imageId;
							 | 
						|
								  @HiveField(3)
							 | 
						|
								  FileEntity? imageInfo;
							 | 
						|
								  @HiveField(4)
							 | 
						|
								  int? order;
							 | 
						|
								  @HiveField(5)
							 | 
						|
								  bool? isActive;
							 | 
						|
								  @HiveField(6)
							 | 
						|
								  String? image;
							 | 
						|
								  @HiveField(7)
							 | 
						|
								  String? audioID;
							 | 
						|
								  @HiveField(8)
							 | 
						|
								  FileEntity? audioInfo;
							 | 
						|
								  @HiveField(9)
							 | 
						|
								  String? audio;
							 | 
						|
								
							 | 
						|
								  AnswerEntity({
							 | 
						|
								    this.id,
							 | 
						|
								    this.title,
							 | 
						|
								    this.imageId,
							 | 
						|
								    this.imageInfo,
							 | 
						|
								    this.order,
							 | 
						|
								    this.isActive,
							 | 
						|
								    this.audioID,
							 | 
						|
								    this.audioInfo,
							 | 
						|
								  }){
							 | 
						|
								    image = '${StoragePath.documentDir.path}/images/${imageInfo?.filename}';
							 | 
						|
								    audio = '${StoragePath.documentDir.path}/${LocalStorage.readData(key: MyConstants.selectLanguage)}/answer_audio/${audioInfo?.filename}';
							 | 
						|
								  }
							 | 
						|
								}
							 |