From 99643e5be84af7e8da217ed48597ceb3c9d3bc85 Mon Sep 17 00:00:00 2001 From: Bryson Steck Date: Tue, 4 May 2021 17:59:55 -0600 Subject: before i get too deep in the database stuff --- .../java/com/example/wiimmterfaceandroid/model/FriendCode.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'app/src/main/java/com/example/wiimmterfaceandroid/model') 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 -- cgit v1.2.3