aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/com/example/wiimmterfaceandroid/model
diff options
context:
space:
mode:
authorBryson Steck <steck.bryson@gmail.com>2021-05-04 20:18:17 -0600
committerBryson Steck <steck.bryson@gmail.com>2021-05-04 20:18:17 -0600
commit50dfc57c61a01dc20a42129246b458bf90e26154 (patch)
tree4c9e38c1fb4130b566b9393b317b7c7c104a51ba /app/src/main/java/com/example/wiimmterfaceandroid/model
parent99643e5be84af7e8da217ed48597ceb3c9d3bc85 (diff)
downloadwiimmfi-watcher-50dfc57c61a01dc20a42129246b458bf90e26154.tar
wiimmfi-watcher-50dfc57c61a01dc20a42129246b458bf90e26154.tar.gz
wiimmfi-watcher-50dfc57c61a01dc20a42129246b458bf90e26154.tar.bz2
getting closer to implementing the recycler view
Diffstat (limited to 'app/src/main/java/com/example/wiimmterfaceandroid/model')
-rw-r--r--app/src/main/java/com/example/wiimmterfaceandroid/model/FriendCode.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/src/main/java/com/example/wiimmterfaceandroid/model/FriendCode.java b/app/src/main/java/com/example/wiimmterfaceandroid/model/FriendCode.java
index cb13138..3aad0a1 100644
--- a/app/src/main/java/com/example/wiimmterfaceandroid/model/FriendCode.java
+++ b/app/src/main/java/com/example/wiimmterfaceandroid/model/FriendCode.java
@@ -9,10 +9,13 @@ import java.io.Serializable;
@Entity
public class FriendCode implements Serializable {
+ @PrimaryKey (autoGenerate = true)
+ public long id;
+
@ColumnInfo(name="name")
public String name;
- @PrimaryKey
+ @NonNull
@ColumnInfo(name="friendCode")
public String friendCode;