Constructor
new Conversation()
- Source:
Properties:
Name | Type | Description |
---|---|---|
title |
String | The title of the Data List. |
dateCreated |
String | The date that this Data List was created. |
description |
String | The description of the Data List. |
datumIds |
Array.<String> | An ordered list of the datum IDs of the Datums in the Data List. |
The Conversation widget is under construction (it is a combo of a data list and a datum)
Extends
- Backbone.Model
Methods
saveAndInterConnectInApp(successcallback, failurecallback)
- Source:
Accepts two functions to call back when save is successful or
fails. If the fail callback is not overridden it will alert
failure to the user.
- Adds the dataList to the corpus if it is in the right corpus, and wasnt already there
- Adds the dataList to the user if it wasn't already there
- Adds an activity to the logged in user with diff in what the user changed.
Parameters:
Name | Type | Description |
---|---|---|
successcallback |
||
failurecallback |
setAsCurrentConversation(successcallback, failurecallback)
- Source:
Accepts two functions success will be called if successful,
otherwise it will attempt to render the current dataList views. If
the dataList isn't in the current corpus it will call the fail
callback or it will alert a bug to the user. Override the fail
callback if you don't want the alert.
Parameters:
Name | Type | Description |
---|---|---|
successcallback |
||
failurecallback |