Created
February 17, 2012 10:03
-
-
Save deradam/1852375 to your computer and use it in GitHub Desktop.
Brainstorm API
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Brainstorm API Examples | |
* | |
* User: giemza | |
* Date: 17.02.12 | |
* Time: 10:46 | |
*/ | |
var User = function User(username, screenname, id) { | |
this.username = username || ''; | |
this.screenname = screenname || ''; | |
this.id = id || Math.uuid(); | |
this.toTuple = function toTuple() { | |
return new TS.Tuple(this.id, this.username, this.screenname); | |
}; | |
this.fromTuple = function fromTuple(tuple) { | |
}; | |
}; | |
var Card = function Card() { | |
}; | |
var CardData = function CardData() { | |
}; | |
var Tag = function Tag() { | |
}; | |
var Score = function Score() { | |
}; | |
var Poll = function Poll() { | |
}; | |
var PollVote = function PollVote() { | |
}; | |
var Session = function Session() { | |
}; | |
var SessionParticipant = function SessionParticipant() { | |
}; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment