#0
nonstandard
0.00004000 BSV
Q!¨gêU2<£ZÊ/¦-$½ª±õbÓ è°B¡*ÃQ®Mf{"__cls":"class UserProfile {\n constructor(\n pubKey,\n oc,\n displayName,\n website,\n bio,\n image,\n jobTitle,\n company,\n companyUrl\n ) {\n this.contractTypeID = \"964001a2-140c-11eb-adc1-0242ac120002\";\n this.contractTypeName = \"UserProfile\";\n this.contractTypeVersion = \"0.0.1\";\n this.originalChannel = oc;\n this._owners = [pubKey];\n this.manager = pubKey;\n this.displayName = displayName;\n this.website = website;\n this.bio = bio;\n this.image = image;\n this.jobTitle = jobTitle;\n this.company = company;\n this.companyUrl = companyUrl;\n }\n\n setDisplayName(name) {\n this.displayName = name;\n }\n\n setWebsite(website) {\n this.website = website;\n }\n\n setBio(bioAsMarkdown) {\n this.bio = bioAsMarkdown;\n }\n\n setImage(imageUrl) {\n this.image = imageUrl;\n }\n\n setJobTitle(jobTitle) {\n this.jobTitle = jobTitle;\n }\n\n setCompany(companyName) {\n this.company = companyName;\n }\n\n setCompanyUrl(companyUrl) {\n this.companyUrl = companyUrl;\n }\n\n shareWith(pubKey) {\n //how do I get the public key of the user making the request?\n //if the user is not the manager, I do not want to allow the user to make a change here\n //even if they are the owner.\n this._owners.push(pubKey);\n }\n\n removeShare(pubKey) {\n let _temp = this._owners;\n let index = _temp.indexOf(pubKey);\n if (index === -1) {\n throw new Error(\"The key does not exist in the shared list\");\n }\n _temp.splice(index, 1);\n this._owners = _temp;\n }\n}","__index":{"obj":0},"__args":["02a89a67ea1d55323ca35aca802fa62d24bdaab1f562d309e8b09542a18b2ac318","clack.chat","Clemens","http://bitcoincomputer.io/","","https://pbs.twimg.com/profile_images/776448775690813440/ZneqVb67_400x400.jpg","","Bitcoin Computer",""],"__func":"constructor"}u
https://whatsonchain.com/tx/80bbb44c18aa6425301502ca2d7dd69c2dca32331341be3f67510f872ef33857