add User and UserConnectionInfo models
This commit is contained in:
parent
3817a1fe09
commit
485cf4b20f
@ -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
6
src/models/User.ts
Normal file
@ -0,0 +1,6 @@
|
||||
export interface User {
|
||||
id: string;
|
||||
name: string;
|
||||
isOnline: boolean;
|
||||
isAnonymous: boolean;
|
||||
}
|
||||
4
src/models/UserConnectionInfo.ts
Normal file
4
src/models/UserConnectionInfo.ts
Normal file
@ -0,0 +1,4 @@
|
||||
export interface UserConnectionInfo {
|
||||
userId: string;
|
||||
isOnline: boolean;
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user