#0
nonstandard
0.00004000 BSV
Q!Û.Þ&¡µmj·öôÇûøEFó2u·1Q®MÄ
{"personalDetails":1,"__cls":"class UserSC {\n constructor(\n owners = [],\n firstName = '',\n lastName = '',\n email = '',\n phone = 0,\n title = '',\n dateCreated = new Date(),\n institution = '',\n publicKey = '',\n adminKeys = []\n ) {\n this._owners = owners;\n\n this.personalDetails = {\n _owners: owners,\n firstName,\n lastName,\n email,\n phone,\n title,\n dateCreated,\n };\n\n this.institution = institution;\n\n this.publicKey = publicKey;\n\n this.adminKeys = adminKeys;\n\n this.funds = [];\n\n this.files = [];\n }\n\n addFile(documentId) {\n this.files = [...new Set(this.files.concat(documentId))];\n }\n\n addFund(fundId) {\n this.funds = [...new Set(this.funds.concat(fundId))];\n }\n\n removeFund(fundId) {\n const index = this.funds.indexOf(fundId);\n if (index > -1) {\n this.funds.splice(index, 1);\n }\n }\n\n removeOwner(id) {\n let index = this._owners.indexOf(id);\n if (index > -1) {\n this._owners.splice(index, 1);\n }\n\n index = this.personalDetails._owners.indexOf(id);\n if (index > -1) {\n if (index > -1) {\n }\n this.personalDetails._owners.splice(index, 1);\n }\n if (index > -1) {\n }\n\n index = this.adminKeys.indexOf(id);\n if (index > -1) {\n }\n this.adminKeys.splice(index, 1);\n if (index > -1) {\n }\n }\n\n addOwner(id) {\n this._owners = [...new Set(this._owners.concat(id))];\n this.personalDetails._owners = [...new Set(this.personalDetails._owners.concat(id))];\n }\n\n addAdmin(id) {\n this.addOwner(id);\n this.adminKeys = [...new Set(this.adminKeys.concat(id))];\n }\n\n setFirstName(value) {\n this.personalDetails.firstName = value;\n }\n\n setLastName(value) {\n this.personalDetails.lastName = value;\n }\n\n setInstitution(value) {\n this.institution = value;\n }\n\n setPublicKey(value) {\n this.publicKey = value;\n }\n\n setEmail(value) {\n this.personalDetails.email = value;\n }\n\n setPhone(value) {\n this.personalDetails.phone = value;\n }\n\n setTitle(value) {\n this.personalDetails.title = value;\n }\n\n edit(firstName, lastName, email, phone, title) {\n this.personalDetails.firstName = firstName;\n this.personalDetails.lastName = lastName;\n this.personalDetails.email = email;\n this.personalDetails.phone = phone;\n this.personalDetails.title = title;\n }\n}","__index":{"obj":0},"__func":"constructor","__args":[["027fdb2e1d90de26a1b56d6ab7f6f4c71e10fb06f84546f3327517b78499078131"],"Seller","Compliance","a",0,"a","Wed Feb 10 2021 13:39:20 GMT+0200","5f64b22b030fce74b96fdc3f9c700d91e833e55985f0b13b787ba01f90702ee6:0","",[]]}u
https://whatsonchain.com/tx/52bbddef16e1e5395e1d60079cdc970dd18ef6499f6a80dda2782ab381805d6e