diff --git a/app/src/main/java/com/example/tampopo_client/Tampopo.java b/app/src/main/java/com/example/tampopo_client/Tampopo.java index 5cf6ea8..1a1516a 100644 --- a/app/src/main/java/com/example/tampopo_client/Tampopo.java +++ b/app/src/main/java/com/example/tampopo_client/Tampopo.java @@ -13,6 +13,7 @@ private String password; private String chatroomId; private String chatFriendId; + private String chatFriendNickname; private String mailaddress; private String nickname; private String icon; @@ -75,6 +76,15 @@ saveUserData(); } + public String getChatFriendNickname() { + return chatFriendNickname; + } + + public void setChatFriendNickname(String ChatFriendNickname) { + this.chatFriendNickname = ChatFriendNickname; + saveUserData(); + } + public String getNickname() { return nickname; } @@ -99,6 +109,7 @@ editor.putString("password", password); editor.putString("chatroomId", chatroomId); editor.putString("chatFriendId", chatFriendId); + editor.putString("chatFriendNickname", chatFriendNickname); editor.putString("mailaddress", mailaddress); editor.putString("nickname", nickname); editor.putString("icon", icon); @@ -113,6 +124,7 @@ password = prefs.getString("password", ""); chatroomId = prefs.getString("chatroomId", ""); chatFriendId = prefs.getString("chatFriendId", ""); + chatFriendNickname = prefs.getString("chatFriendNickname", ""); mailaddress = prefs.getString("mailaddress", ""); nickname = prefs.getString("nickname", ""); icon = prefs.getString("icon", "");