From 5e242ca9ba094bd0e603302e07a2f94867be5621 Mon Sep 17 00:00:00 2001 From: Halit Aksoy Date: Sat, 23 Jul 2022 00:32:16 +0300 Subject: [PATCH] add User and UserConnectionInfo models --- src/models/User.ts | 6 ++++++ src/models/UserConnectionInfo.ts | 4 ++++ 2 files changed, 10 insertions(+) create mode 100644 src/models/User.ts create mode 100644 src/models/UserConnectionInfo.ts 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