From d7c9711593842ef44f442c4f62fcab137f52efe8 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Thu, 22 Mar 2018 14:04:19 +0100 Subject: [PATCH] [mockup.api] renamed [mockup.ws-login.*] simplified [mockup.ws-text-room-update] added --- webpack/mockup/{channel-init.json => api-channel-init.json} | 0 webpack/mockup/{channels.json => api-channels.json} | 0 webpack/mockup/ws-login-error.json | 2 +- webpack/mockup/ws-login-success.json | 5 +---- webpack/mockup/ws-text-room-update.json | 6 ++++++ 5 files changed, 8 insertions(+), 5 deletions(-) rename webpack/mockup/{channel-init.json => api-channel-init.json} (100%) rename webpack/mockup/{channels.json => api-channels.json} (100%) create mode 100644 webpack/mockup/ws-text-room-update.json diff --git a/webpack/mockup/channel-init.json b/webpack/mockup/api-channel-init.json similarity index 100% rename from webpack/mockup/channel-init.json rename to webpack/mockup/api-channel-init.json diff --git a/webpack/mockup/channels.json b/webpack/mockup/api-channels.json similarity index 100% rename from webpack/mockup/channels.json rename to webpack/mockup/api-channels.json diff --git a/webpack/mockup/ws-login-error.json b/webpack/mockup/ws-login-error.json index 673d90a..2d6ea82 100644 --- a/webpack/mockup/ws-login-error.json +++ b/webpack/mockup/ws-login-error.json @@ -1,5 +1,5 @@ { - "user": null + "error": true } \ No newline at end of file diff --git a/webpack/mockup/ws-login-success.json b/webpack/mockup/ws-login-success.json index a2edd40..3ee0b24 100644 --- a/webpack/mockup/ws-login-success.json +++ b/webpack/mockup/ws-login-success.json @@ -1,8 +1,5 @@ { - "user": { - "uid": 12, - "name": "UserName" - } + "error": false } \ No newline at end of file diff --git a/webpack/mockup/ws-text-room-update.json b/webpack/mockup/ws-text-room-update.json new file mode 100644 index 0000000..15e1d3c --- /dev/null +++ b/webpack/mockup/ws-text-room-update.json @@ -0,0 +1,6 @@ +[ + + { "mid": 100, "uid": 1, "ts": 23894808320, "msg": "Hey ! How are you ?" }, + { "mid": 101, "uid": 3, "ts": 23894808330, "msg": "Fine n you ?" } + +] \ No newline at end of file