1.0.1 actual

works!
This commit is contained in:
hydrabolt
2015-08-10 23:05:38 +01:00
parent 30204f2ce5
commit a7c9dafe06
8 changed files with 314 additions and 1 deletions

19
lib/channel.js Normal file
View File

@@ -0,0 +1,19 @@
exports.Channel = function(name, serverId, type, id, isPrivate){
this.name = name;
this.serverId = serverId;
this.type = type;
this.id = id;
this.isPrivate = isPrivate;
}
exports.Channel.equals = function(otherChannel){
if(otherChannel.id === this.id){
return true;
} else {
return false;
}
}