### With a contact #### Including all data types ```jsx const contact = { name: { displayName: 'Someone Somewhere', }, number: [ { value: '(202) 555-0000', type: 1, }, ], avatar: { avatar: { path: util.gifObjectUrl, }, }, onClick: () => console.log('onClick'), onSendMessage: () => console.log('onSendMessage'), hasSignalAccount: true, };
  • ; ``` #### Really long data ``` const contact = { name: { displayName: 'Dr. First Middle Last Junior Senior and all that and a bag of chips', }, number: [ { value: '(202) 555-0000 0000 0000 0000 0000 0000 0000 0000 0000 0000', type: 1, }, ], avatar: { avatar: { path: util.gifObjectUrl, }, }, hasSignalAccount: true, };
  • ; ``` #### In group conversation ```jsx const contact = { name: { displayName: 'Someone Somewhere', }, number: [ { value: '(202) 555-0000', type: 1, }, ], avatar: { avatar: { path: util.gifObjectUrl, }, }, hasSignalAccount: true, };
  • ; ``` #### If contact has no signal account ```jsx const contact = { name: { displayName: 'Someone Somewhere', }, number: [ { value: '(202) 555-0000', type: 1, }, ], avatar: { avatar: { path: util.gifObjectUrl, }, }, hasSignalAccount: false, };
  • ; ``` #### With organization name instead of name ```jsx const contact = { organization: 'United Somewheres, Inc.', email: [ { value: 'someone@somewheres.com', type: 2, }, ], avatar: { avatar: { path: util.gifObjectUrl, }, }, hasSignalAccount: false, };
  • ; ``` #### No displayName or organization ```jsx const contact = { name: { givenName: 'Someone', }, number: [ { value: '(202) 555-1000', type: 1, }, ], avatar: { avatar: { path: util.gifObjectUrl, }, }, hasSignalAccount: false, };
  • ; ``` #### Default avatar ```jsx const contact = { name: { displayName: 'Someone Somewhere', }, number: [ { value: '(202) 555-1001', type: 1, }, ], hasSignalAccount: true, };
  • ; ``` #### Empty contact ```jsx const contact = {};
  • ; ``` #### Contact with caption (cannot currently be sent) ```jsx const contactWithAccount = { name: { displayName: 'Someone Somewhere', }, number: [ { value: '(202) 555-0000', type: 1, }, ], avatar: { avatar: { path: util.gifObjectUrl, }, }, hasSignalAccount: true, }; const contactWithoutAccount = { name: { displayName: 'Someone Somewhere', }, number: [ { value: '(202) 555-0000', type: 1, }, ], avatar: { avatar: { path: util.gifObjectUrl, }, }, hasSignalAccount: false, };
  • ; ```