mirror of https://github.com/moparisthebest/mail
29 lines
371 B
JavaScript
29 lines
371 B
JavaScript
(function() {
|
|
'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) {}
|
|
|
|
});
|
|
|
|
}()); |