assignment 15
user
login
chat with contacts
user
chat privately
chat in a group
select group/contact
receive msg send msg
record in chat history
Contact
- name: String - p_numb: String
+ setName(String name): void +getName(): String +setNumber(String p_number): void +getNumber(): String
+Contact(String name, String phone)
+toS tring(): String
+sendMessage(Contact ct, Message ms g): void
+receiveMes sage(Contact ct): Message
<<abstract>> Message
# ti me_seq: int # sender: Contact
+getTime(): int
+getS ender(): Contact
+<<abs tract>> sendMsg(Contact ct, Message ms g): void
+<<abs tract>> receiveMsg(Contact ct):Message
+<<abs tract>>toS tring(): String
TextMsg
- text: String
VoiceMsg
-msg: Audio
Audio
- audio: String
+setAudio(String audio): void + getAudio(): String
+ Audio(String msg)
+ toS tring() : String
contains
1
1
0
* send
+ TextMsg(Contact ct, int time, String text)
+TextMsg(Contact ct)
+VoiceMs g(Contact ct, int time, Audio audioMsg)
- week4 WhatsApp.vsdx
- WhatsappUse-case1
- WS-chat
- ACTVT send msg
- Class DG MSG with Contact