Interfaces - Makleido/ChatTestingApp GitHub Wiki

Interfaces I used


Interface Purpose
I.CreateUser Contains every attribute (some optional) that is needed for a user
I.Message.dto its for storing Messages the server sent back, and showing the message boxes with the data

ICreateUser

Name Type Purpose
name string Username
email string (optional) User email (registration)
password string (optional) User password (registration/login)
unreaded boolean (optional) Chat shows if has unreaded message from him/her or not

IMessageDto

Name Type Purpose
id number Identifies a message from db
sender string Who sent the message
receiver string Who received the message
message string The message they sent to each other
sent_date string When a message was sent, shows the date the db registered the unreaded message
edited number Shows if a message was updated (1) or not (0)
sent boolean (optional) If it was sent, but not readed, then it wont show edit and options on the message
side boolean (optional) Puts the message on the side it belongs (sender/receiver)

Back home
Home