mirror of https://github.com/moparisthebest/mail
28 lines
354 B
JavaScript
28 lines
354 B
JavaScript
|
'use strict';
|
||
|
|
||
|
app.model.Email = Backbone.Model.extend({
|
||
|
|
||
|
defaults: {
|
||
|
id: null,
|
||
|
from: null,
|
||
|
to: [],
|
||
|
cc: [],
|
||
|
bcc: [],
|
||
|
subject: null,
|
||
|
body: null,
|
||
|
sentDate: null
|
||
|
},
|
||
|
|
||
|
initialize: function () {
|
||
|
}
|
||
|
|
||
|
});
|
||
|
|
||
|
app.model.EmailCollection = Backbone.Collection.extend({
|
||
|
|
||
|
model: app.model.Email,
|
||
|
|
||
|
findByName: function (key) {
|
||
|
}
|
||
|
|
||
|
});
|