-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathDisplay.js
28 lines (24 loc) · 1.03 KB
/
Display.js
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
class Display {
static showUser(users) {
console.log("\n==========Users=============")
console.log("UID", "Name", "Email", "Phone")
for (const [key, value] of Object.entries(users)) {
console.log(key, "=>", value.ID, value.Name, value.Email, value.Phone)
}
}
static showTransaction(transactions) {
console.log("\n==========Transactions=============")
console.log("TD", "Payer ID", "Exp.Type", "Amount", "Payee")
for (const [key, value] of Object.entries(transactions)) {
console.log(key, value.PayerId, value.ExpenseType, value.Amount, value.Payee)
}
}
static showUserTransaction(transactions) {
console.log("\n==========User Transactions=============")
console.log("UTID", "TID", "Type", "UID", "Amount")
for (const [key, value] of Object.entries(transactions)) {
console.log(key, value.TransactionId, value.TransactionType, value.UserId, value.Amount)
}
}
}
module.exports.Display = Display