blob: 12d27936231eadf31ae0289adaa322a8f2feaf5e [file] [log] [blame]
// Copyright 2016 The Vanadium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package examples.baku.io.permissions.examples;
import com.google.firebase.database.ServerValue;
import java.util.Map;
/**
* Created by phamilton on 6/22/16.
*/
public class MessageData {
String id;
String to = "";
String from = "";
String subject = "";
String message = "";
long timeStamp;
// Map<String, Map<String, Integer>> shared = new HashMap<>();
public MessageData(){}
public MessageData(String id, String to, String from, String subject, String message) {
this.id = id;
this.to = to;
this.from = from;
this.subject = subject;
this.message = message;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getTo() {
return to;
}
public void setTo(String to) {
this.to = to != null ? to : "";
}
public String getFrom() {
return from;
}
public void setFrom(String from) {
this.from = from != null ? from : "";
}
public String getSubject() {
return subject;
}
public void setSubject(String subject) {
this.subject = subject != null ? subject : "";
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message != null ? message : "";
}
public Map<String,String> getTimeStamp() {
return ServerValue.TIMESTAMP;
}
public void setTimeStamp(long timeStamp) {
this.timeStamp = timeStamp;
}
}