summaryrefslogtreecommitdiffstats
path: root/module/web/static/js/models/Account.js
diff options
context:
space:
mode:
Diffstat (limited to 'module/web/static/js/models/Account.js')
-rw-r--r--module/web/static/js/models/Account.js38
1 files changed, 38 insertions, 0 deletions
diff --git a/module/web/static/js/models/Account.js b/module/web/static/js/models/Account.js
new file mode 100644
index 000000000..55e63ac08
--- /dev/null
+++ b/module/web/static/js/models/Account.js
@@ -0,0 +1,38 @@
+define(['jquery', 'backbone', 'underscore', 'utils/apitypes'], function($, Backbone, _, Api) {
+
+ return Backbone.Model.extend({
+
+ // TODO
+ // generated, not submitted
+ idAttribute: 'user',
+
+ defaults: {
+ plugin: null,
+ loginname: null,
+ owner: -1,
+ valid: false,
+ validuntil: -1,
+ trafficleft: -1,
+ maxtraffic: -1,
+ premium: false,
+ activated: false,
+ shared: false,
+ options: null
+ },
+
+ // Model Constructor
+ initialize: function() {
+
+ },
+
+ // Any time a model attribute is set, this method is called
+ validate: function(attrs) {
+
+ },
+
+ save: function(options){
+ // TODO
+ }
+ });
+
+}); \ No newline at end of file