discussionPreference

Discussion preferences

class DiscussionIndividualPreferenceModel()

An individual preference value. We do not use Base.Model.extend(), because we want to keep Backbone’s default behaviour with model urls. Generic case: preference value can be any json, not necessarily a dict. So put it in “value” attribute of this model.

DiscussionIndividualPreferenceModel.parse()
DiscussionIndividualPreferenceModel.toJSON()
class DiscussionPreferenceCollection()
Extends

app.models.discussionPreference.PreferenceCollection()

DiscussionPreferenceCollection.parse()
DiscussionPreferenceCollection.toJSON()
class DiscussionPreferenceCollection()
Extends

app.models.discussionPreference.PreferenceCollection()

DiscussionPreferenceCollection.parse()
DiscussionPreferenceCollection.toJSON()
class DiscussionPreferenceDictionaryModel()

Subcase: pref is a dictionary, so we can use normal backbone

DiscussionPreferenceDictionaryModel.url()
class DiscussionPreferenceSubCollection()
class PreferenceCollection()
class UserPreferenceRawCollection()
Extends

app.models.discussionPreference.PreferenceCollection()