package edu.cmu.sv.ws.ssnoc.dto;

import java.sql.Timestamp;

/**
 * This object contains message information that is responded as part of the REST
 * API request.
 * 
 */
public class Message {
	private long chatMessageId;
	private long senderId;
	private long receiverId;
	private String content;
	private String location;
	private String message;
	private Timestamp createdAt;
	public long getChatMessageId() {
		return chatMessageId;
	}
	public void setChatMessageId(long chatMessageId) {
		this.chatMessageId = chatMessageId;
	}
	public long getSenderId() {
		return senderId;
	}
	public void setSenderId(long senderId) {
		this.senderId = senderId;
	}
	public long getReceiverId() {
		return receiverId;
	}
	public void setReceiverId(long receiverId) {
		this.receiverId = receiverId;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getLocation() {
		return location;
	}
	public void setLocation(String location) {
		this.location = location;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public Timestamp getCreatedAt() {
		return createdAt;
	}
	public void setCreatedAt(Timestamp createdAt) {
		this.createdAt = createdAt;
	}
	public String getUserName() {
		// TODO Auto-generated method stub
		return null;
	}
	public String setUserName() {
		// TODO Auto-generated method stub
		return null;
	}
	
	
	
}

@@ -159,17 +159,16 @@
 uest.%0A *
- 
 %0A */%0Apub
@@ -197,28 +197,24 @@
 rivate long 
-chat
 MessageId;%0A%09
@@ -226,22 +226,22 @@
 te long 
-sender
+target
 Id;%0A%09pri
@@ -250,23 +250,21 @@
 te long 
-receive
+autho
 rId;%0A%09pr
@@ -366,16 +366,18 @@
 atedAt;%0A
+%0A%0A
 %09public 
@@ -384,20 +384,16 @@
 long get
-Chat
 MessageI
@@ -407,20 +407,16 @@
 %09return 
-chat
 MessageI
@@ -441,12 +441,8 @@
  set
-Chat
 Mess
@@ -452,21 +452,17 @@
 Id(long 
-chatM
+m
 essageId
@@ -471,17 +471,8 @@
 %7B%0A%09%09
-this.chat
 Mess
@@ -483,13 +483,9 @@
 d = 
-chatM
+m
 essa
@@ -485,32 +485,34 @@
 = messageId;%0A%09%7D%0A
+%0A%0A
 %09public long get
@@ -511,22 +511,22 @@
 long get
-Sender
+Target
 Id() %7B%0A%09
@@ -533,22 +533,22 @@
 %09return 
-sender
+target
 Id;%0A%09%7D%0A%09
@@ -566,22 +566,22 @@
  set
-Sender
+Target
 Id(long 
 send
@@ -576,22 +576,22 @@
 Id(long 
-sender
+target
 Id) %7B%0A%09%09
@@ -599,25 +599,25 @@
 his.
-senderId = sender
+targetId = target
 Id;%0A
@@ -635,23 +635,21 @@
 long get
-Receive
+Autho
 rId() %7B%0A
@@ -657,23 +657,21 @@
 %09return 
-receive
+autho
 rId;%0A%09%7D%0A
@@ -690,15 +690,13 @@
  set
-Receive
+Autho
 rId(
@@ -700,23 +700,21 @@
 Id(long 
-receive
+autho
 rId) %7B%0A%09
@@ -723,28 +723,24 @@
 his.
-receiverId = receive
+authorId = autho
 rId;
@@ -1431,12 +1431,9 @@
 %0A%09%7D%0A
-%09%0A%09%0A%09
+%0A%0A
 %0A%7D%0A

Add getters and setters