YieldRooms() public method

Yields each individual room as strongly-typed Entities.Room object
public YieldRooms ( ) : IEnumerable
return IEnumerable
示例#1
0
 public void TestYieldRooms()
 {
     var client = new HipChat.HipChatClient(defaultClient.Token);
     var x = 0;
     foreach (HipChat.Entities.Room room in client.YieldRooms())
     {
         x++;
     }
     Assert.IsTrue(x > 0);
 }
示例#2
0
        public void TestYieldRooms()
        {
            var client = new HipChat.HipChatClient(defaultClient.Token);
            var x      = 0;

            foreach (HipChat.Entities.Room room in client.YieldRooms())
            {
                x++;
            }
            Assert.IsTrue(x > 0);
        }