| | |
| | | |
| | | import androidx.lifecycle.LiveData; |
| | | import androidx.room.Dao; |
| | | import androidx.room.Delete; |
| | | import androidx.room.Insert; |
| | | import androidx.room.OnConflictStrategy; |
| | | import androidx.room.Query; |
| | |
| | | |
| | | @Query("update exam_status set enter =:enter where map_id =:mapid") |
| | | void updateEnter(int enter,int mapid); |
| | | @Query("update exam_status set result =:result where map_id =:mapid") |
| | | void updateItemResult(int result,int mapid); |
| | | @Query("update exam_status set startExam =:startexam") |
| | | void updateStartExam(int startexam); |
| | | |
| | |
| | | LiveData<Integer> getStartExam(); |
| | | @Query("select startExam from exam_status where map_id=1") |
| | | int getStartExamInt(); |
| | | |
| | | @Query("delete from exam_status") |
| | | void deleteAll(); |
| | | } |