CaveTube.CaveTalk.Lib.CaveTubeClientWrapper.GetRoomInfoAsync C# (CSharp) Method

GetRoomInfoAsync() protected method

protected GetRoomInfoAsync ( String url ) : Task
url String
return Task
		protected override async Task<Room> GetRoomInfoAsync(String url) {
			try {
				var summary = Mapper.Map<Summary>(await this.client.GetSummaryAsync(url));
				var messages = (await this.client.GetCommentAsync(url)).Select(m => Mapper.Map<Message>(m));
				return new Room(summary, messages);
			} catch (CavetubeException) {
				return new Room(null, null);
			}
		}