Format all files with no breaking changes
Lint all files using `npm run lint -- --fix`.
Format all files using `prettier --write "**/*.{ts,tsx,js,jsx,json}"`
No breaking change, only code style is modified.
Gitlab: #29
Change-Id: I4f034a7fb4d3eea10bcd3e38b44a65a1046de62f
diff --git a/model/Contact.js b/model/Contact.js
index 66459d2..cc8e386 100644
--- a/model/Contact.js
+++ b/model/Contact.js
@@ -1,41 +1,46 @@
class Contact {
- constructor(uri) {
- this.uri = uri
- this.displayName = undefined
- this.registeredName = undefined
- }
+ constructor(uri) {
+ this.uri = uri;
+ this.displayName = undefined;
+ this.registeredName = undefined;
+ }
- static from(object) {
- const contact = new Contact(object.uri)
- if (object.registeredName)
- contact.setRegisteredName(object.registeredName)
- return contact
- }
+ static from(object) {
+ const contact = new Contact(object.uri);
+ if (object.registeredName) contact.setRegisteredName(object.registeredName);
+ return contact;
+ }
- getUri() { return this.uri }
+ getUri() {
+ return this.uri;
+ }
- getRegisteredName() { return this.registeredName }
+ getRegisteredName() {
+ return this.registeredName;
+ }
- setRegisteredName(name) { this.registeredName = name }
+ setRegisteredName(name) {
+ this.registeredName = name;
+ }
- isRegisteredNameResolved() {
- return this.registeredName !== undefined
- }
+ isRegisteredNameResolved() {
+ return this.registeredName !== undefined;
+ }
- getDisplayName() {
- return this.getDisplayNameNoFallback() || this.getUri()
- }
+ getDisplayName() {
+ return this.getDisplayNameNoFallback() || this.getUri();
+ }
- getDisplayNameNoFallback() {
- return this.displayName || this.getRegisteredName()
- }
+ getDisplayNameNoFallback() {
+ return this.displayName || this.getRegisteredName();
+ }
- async getObject() {
- return {
- uri: this.uri,
- registeredName: await this.registeredName
- }
- }
+ async getObject() {
+ return {
+ uri: this.uri,
+ registeredName: await this.registeredName,
+ };
+ }
}
-export default Contact
+export default Contact;