Guest User

Untitled

a guest
Apr 5th, 2021
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. @Entity(tableName = "score_board_table")
  2. data class ScoreBoard (
  3. @PrimaryKey(autoGenerate = true)
  4. var scoreId: Int = 0,
  5. @ColumnInfo(name ="score_scoreboard")
  6. var score_points: Int = 0,
  7. @ColumnInfo(name ="score_name")
  8. var score_name: String = "",
  9.  
  10. )
  11.  
  12.  
  13. @Query("SELECT * FROM score_board_table ORDER BY score_scoreboard DESC ")
  14. fun getAllScores(): List<ScoreBoard>
Advertisement
Add Comment
Please, Sign In to add comment