add User and UserConnectionInfo models

This commit is contained in:
Halit Aksoy 2022-07-23 00:29:38 +03:00
parent 3817a1fe09
commit 485cf4b20f
3 changed files with 16 additions and 3 deletions

View File

@ -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"
}

6
src/models/User.ts Normal file
View File

@ -0,0 +1,6 @@
export interface User {
id: string;
name: string;
isOnline: boolean;
isAnonymous: boolean;
}

View File

@ -0,0 +1,4 @@
export interface UserConnectionInfo {
userId: string;
isOnline: boolean;
}