refactor(agent): replace model with class (#4089)

pull/4073/head
Chaim Lev-Ari 2020-07-22 21:35:15 +03:00 committed by GitHub
parent 3a33365133
commit c9dd6e3851
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 4 deletions

View File

@ -1,5 +1,7 @@
export function AgentViewModel(data) { export class AgentViewModel {
this.IPAddress = data.IPAddress; constructor(data) {
this.NodeName = data.NodeName; this.IPAddress = data.IPAddress;
this.NodeRole = data.NodeRole; this.NodeName = data.NodeName;
this.NodeRole = data.NodeRole;
}
} }