-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTasks.java
More file actions
51 lines (36 loc) · 1.21 KB
/
Tasks.java
File metadata and controls
51 lines (36 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
package com.example.lenovo.employeetrackingsystem;
import com.google.firebase.database.Exclude;
import java.util.HashMap;
import java.util.Map;
/**
* Created by Lenovo on 17-11-2017.
*/
public class Tasks {
String tkey;
String taskname;
String taskdescription;
String tasklocation;
Tasks(String taskname, String taskdescription, String tasklocation){
//this.tkey=tkey;
this.taskname=taskname;
this.taskdescription=taskdescription;
this.tasklocation=tasklocation;
}
@Exclude
public Map<String, Object> toMapTask() {
HashMap<String, Object> resultTask = new HashMap<>();
resultTask.put("taskname", taskname);
resultTask.put("taskdescription", taskdescription);
resultTask.put("tasklocation", tasklocation);
return resultTask;
}
@Exclude
public Map<String, Object> toTMap() {
HashMap<String, Object> Tresult = new HashMap<>();
Tresult.put("tkey", tkey);
Tresult.put("taskname", taskname);
Tresult.put("taskdescription", taskdescription);
Tresult.put("tasklocation", tasklocation);
return Tresult;
}
}