Skip to content

Instantly share code, notes, and snippets.

@bjartwolf
Created March 8, 2013 09:14
Show Gist options
  • Save bjartwolf/5115202 to your computer and use it in GitHub Desktop.
Save bjartwolf/5115202 to your computer and use it in GitHub Desktop.
shared domain object
(function (exports) {
exports.Task = function(id, owner, title, description, priority, progress, dueOn, modified) {
var self = this;
this.ID = id;
this.AuthorId = owner; //16
this.Title = title;
this.Body = description;
this.Priority = priority; //(2) Normal
this.PercentComplete = progress; //100
this.DueDate = dueOn; //
this.Modified = modified; //2013-03-07T21:00:18Z
return self;
};
})(typeof exports === 'undefined' ? this['Computas']={} : exports);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment