John Hofman US001
John Hofman (Talk | contribs) (New page: ==User Story== Chris starts up the IM program. He is prompted to input a unique '''username''' and to '''login'''. When he has '''logged in''' he can see a list of the '''other users onli...) |
John Hofman (Talk | contribs) (→Notes) |
||
Line 8: | Line 8: | ||
*There are '''users''' | *There are '''users''' | ||
**Users have unique '''usernames''' | **Users have unique '''usernames''' | ||
− | **Users can | + | **Users can '''login/logout''' and have '''state (logged in/out)''' |
*There are '''chats''' | *There are '''chats''' | ||
*There are '''messages''' | *There are '''messages''' |
Revision as of 01:18, 27 July 2010
User Story
Chris starts up the IM program. He is prompted to input a unique username and to login. When he has logged in he can see a list of the other users online. Seeing that Joe is online he starts a chat by selecting Joe in the online user list and writing a message. Chris's message appears in a new chat. Joe responds with a message and it appears in the chat also. Chris decides to stop chatting and exits the chat, he then logs off and closes the program.
Behind the Scenes
When Chris logs on, the IM client checks the uniqueness of his username with the server (against the list of online users). Chris' username is unique so he is logged on and added to the online list. Chris' client is then updated with the current list of online users so that Chris can see them. When Chris starts a chat with Joe the client registers the chat with the server and passes the message. When Joe replies the server passes the message to Chris' client so that it can be added to the chat
Notes
- There are users
- Users have unique usernames
- Users can login/logout and have state (logged in/out)
- There are chats
- There are messages
- Users can start chats by sending messages to a user
- Users can respond to a message by writing into the existing chat
- Chats have a history of messages