aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/com/example/wiimmterfaceandroid/model
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java/com/example/wiimmterfaceandroid/model')
-rw-r--r--app/src/main/java/com/example/wiimmterfaceandroid/model/FriendCode.java10
1 files changed, 8 insertions, 2 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 4d1cc5e..cb13138 100644
--- a/app/src/main/java/com/example/wiimmterfaceandroid/model/FriendCode.java
+++ b/app/src/main/java/com/example/wiimmterfaceandroid/model/FriendCode.java
@@ -1,13 +1,19 @@
package com.example.wiimmterfaceandroid.model;
+import androidx.annotation.NonNull;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
+import androidx.room.PrimaryKey;
+
+import java.io.Serializable;
@Entity
-public class FriendCode {
+public class FriendCode implements Serializable {
@ColumnInfo(name="name")
public String name;
+ @PrimaryKey
@ColumnInfo(name="friendCode")
public String friendCode;
-}
+
+} \ No newline at end of file