Skip to content

Commit

Permalink
feat(ActivitiesAdapter): add 'attachments' and 'cards' properties to …
Browse files Browse the repository at this point in the history
…Activity object
  • Loading branch information
karinasigartau0798 authored and lalli-flores committed Mar 30, 2022
1 parent 78744ba commit ea49976
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions src/ActivitiesAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,26 @@ import {throwError} from 'rxjs';

import WebexAdapter from './WebexAdapter';

/**
* An attachment of an activity in Webex.
*
* @typedef {object} ActivityAttachment
* @property {string} contentType Content type of the Attachment
* @property {string} content Attachment content
*/

/**
* An activity a person performs in Webex.
*
* @typedef {object} Activity
* @property {string} ID The activity identifier
* @property {string} roomID ID of the room where the activity happens
* @property {string} text Any text the activity may contain
* @property {string} personID ID of the person performing the activity
* @property {Date} created Timestamp of the time when the activity happened
* @property {boolean} displayAuthor Whether to display author information or not
* @property {string} ID The activity identifier
* @property {string} roomID ID of the room where the activity happens
* @property {string} text Any text the activity may contain
* @property {string} personID ID of the person performing the activity
* @property {Array<object>} cards Adaptive cards (parsed)
* @property {Date} created Timestamp of the time when the activity happened
* @property {boolean} displayAuthor Whether to display author information or not
* @property {Array<ActivityAttachment>} attachments Attachments
*/

/**
Expand Down

0 comments on commit ea49976

Please sign in to comment.