From 485cf4b20f38501e20d54ce41d4cff52fee91830 Mon Sep 17 00:00:00 2001 From: Halit Aksoy Date: Sat, 23 Jul 2022 00:29:38 +0300 Subject: [PATCH] add User and UserConnectionInfo models --- src/const/texts.ts | 9 ++++++--- src/models/User.ts | 6 ++++++ src/models/UserConnectionInfo.ts | 4 ++++ 3 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 src/models/User.ts create mode 100644 src/models/UserConnectionInfo.ts diff --git a/src/const/texts.ts b/src/const/texts.ts index f2221ef..b9b1133 100644 --- a/src/const/texts.ts +++ b/src/const/texts.ts @@ -20,7 +20,8 @@ export type Texts = { YouLeftTheGame: string, SearchingOpponent: string, PleaseWait : string, - GameDraw : string + GameDraw : string, + Anonymous: string, } export const EnUs: Texts = { @@ -44,7 +45,8 @@ export const EnUs: Texts = { YouLeftTheGame: "You Left The Game", SearchingOpponent: "Searching Opponent", PleaseWait : "Please Wait", - GameDraw : "Draw" + GameDraw : "Draw", + Anonymous: "Anonymous", } export const TrTr: Texts = { @@ -68,5 +70,6 @@ export const TrTr: Texts = { YouLeftTheGame: "Sen Oyundan Ayrıldın", SearchingOpponent: "Rakip Aranıyor", PleaseWait: "Lütfen Bekleyin", - GameDraw : "Berabere" + GameDraw : "Berabere", + Anonymous: "Anonim" } \ No newline at end of file diff --git a/src/models/User.ts b/src/models/User.ts new file mode 100644 index 0000000..e5ab1ae --- /dev/null +++ b/src/models/User.ts @@ -0,0 +1,6 @@ +export interface User { + id: string; + name: string; + isOnline: boolean; + isAnonymous: boolean; +} \ No newline at end of file diff --git a/src/models/UserConnectionInfo.ts b/src/models/UserConnectionInfo.ts new file mode 100644 index 0000000..3ce426f --- /dev/null +++ b/src/models/UserConnectionInfo.ts @@ -0,0 +1,4 @@ +export interface UserConnectionInfo { + userId: string; + isOnline: boolean; +} \ No newline at end of file