diff options
Diffstat (limited to 'src/models')
-rw-r--r-- | src/models/contact.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/models/contact.js b/src/models/contact.js index 52d713fc..b0eec0a5 100644 --- a/src/models/contact.js +++ b/src/models/contact.js @@ -123,6 +123,27 @@ export default class Contact { } /** + * Return the photo + * + * @readonly + * @memberof Contact + */ + get photo() { + return this.vCard.getFirstPropertyValue('photo') + } + + /** + * Set the photo + * + * @param {string} photo the photo to set + * @memberof Contact + */ + set photo(photo) { + this.vCard.updatePropertyWithValue('photo', photo) + return true + } + + /** * Return the groups * * @readonly |