Skip to content
Browse files

Added users, full, and openToGuests to the room constructor.

  • Loading branch information...
1 parent 6068484 commit c0398f808c59cb003cdd6b5154d1f56663ed4f74 @Fauntleroy Fauntleroy committed with Feb 23, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/campfire/room.js
View
3 lib/campfire/room.js
@@ -3,10 +3,13 @@ var Message = require("./message").Message;
var Room = function(campfire, data) {
this.id = data.id;
this.name = data.name;
+ this.full = data.full;
this.topic = data.topic;
+ this.users = data.users;
this.locked = data.locked;
this.createdAt = new Date(data.created_at);
this.updatedAt = new Date(data.updated_at);
+ this.openToGuests = data.open_to_guests;
this.membershipLimit = data.membership_limit;
this.path = "/room/" + this.id;

0 comments on commit c0398f8

Please sign in to comment.
Something went wrong with that request. Please try again.