Adds removing a monster from the dashboard via long press.
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
package com.majinnaibu.monstercards.models;
|
||||
|
||||
import androidx.room.Embedded;
|
||||
import androidx.room.Relation;
|
||||
|
||||
public class DashboardMonsterWithMonster {
|
||||
@Embedded
|
||||
public DashboardMonster dashboardEntry;
|
||||
|
||||
@Relation(
|
||||
parentColumn = "monster_id",
|
||||
entityColumn = "id"
|
||||
)
|
||||
public Monster monster;
|
||||
|
||||
public DashboardMonsterWithMonster() {
|
||||
}
|
||||
|
||||
public DashboardMonsterWithMonster(DashboardMonster dashboardEntry, Monster monster) {
|
||||
this.dashboardEntry = dashboardEntry;
|
||||
this.monster = monster;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user