model: add Conversation, Account

Change-Id: Ia0717957d9b7489dd2b299ad9f8696e25b662ec7
diff --git a/model/Contact.js b/model/Contact.js
new file mode 100644
index 0000000..b21ddcd
--- /dev/null
+++ b/model/Contact.js
@@ -0,0 +1,27 @@
+class Contact {
+    constructor(uri) {
+        this.uri = uri
+        this.displayName = undefined
+        this.registeredName = undefined
+    }
+
+    static from(object) {
+        return new Contact(object.uri)
+    }
+
+    getUri() { return this.uri }
+
+    getRegisteredName() { this.registeredName }
+
+    getDisplayName() {
+        return this.displayName || this.getRegisteredName() || this.getUri()
+    }
+
+    getObject() {
+        return {
+            uri: this.uri
+        }
+    }
+}
+
+module.exports = Contact;