private CaveTubeClientWrapper(CaveTubeClient.CavetubeClient client)
        {
            this.client = client;

            this.client.OnJoin += this.Join;
            this.client.OnLeave += this.Leave;
            this.client.OnNewMessage += this.NewMessage;
            this.client.OnUpdateMember += this.UpdateMember;
            this.client.OnBan += this.Ban;
            this.client.OnUnBan += this.UnBan;
            this.client.OnAdminShout += this.AdminShout;
            this.client.OnError += this.Error;
            this.client.OnNotifyLiveStart += this.NotifyLiveStart;
            this.client.OnNotifyLiveClose += this.NotifyLiveClose;
        }
		private void NotifyLiveClose(CaveTubeClient.LiveNotification e) {
			if (this.OnNotifyLiveClose != null) {
				this.OnNotifyLiveClose(Mapper.Map<LiveNotification>(e));
			}
		}
		private void Error(CaveTubeClient.CavetubeException e) {
			if (this.OnError != null) {
				this.OnError(e);
			}
		}
		private void AdminShout(CaveTubeClient.AdminShout shout) {
			if (this.OnAdminShout != null) {
				this.OnAdminShout(shout.Message);
			}
		}
		private void ShowComment(CaveTubeClient.Message message) {
			if (this.OnShowComment != null) {
				this.OnShowComment(Mapper.Map<Message>(message));
			}
		}
		private void UnBan(CaveTubeClient.Message message) {
			if (this.OnUnBan != null) {
				this.OnUnBan(Mapper.Map<Message>(message));
			}
		}
		private void NewMessage(CaveTubeClient.Message message) {
			if (this.OnNewMessage != null) {
				this.OnNewMessage(Mapper.Map<Message>(message));
			}
		}
 public Summary(CaveTubeClient.Summary summary)
 {
     this.RoomId = summary.RoomId;
     this.Title = summary.Title;
     this.Description = summary.Description;
     this.Tags = summary.Tags;
     this.IdVidible = summary.IdVidible;
     this.AnonymousOnly = summary.AnonymousOnly;
     this.Author = summary.Author;
     this.PageView = summary.PageView;
     this.Listener = summary.Listener;
     this.StartTime = summary.StartTime;
 }
 public Message(CaveTubeClient.Message message)
 {
     this.IsAuth = message.IsAuth;
     this.Comment = message.Comment;
     this.ListenerId = message.ListenerId;
     this.IsBan = message.IsBan;
     this.Name = message.Name;
     this.Number = message.Number;
     this.PostTime = message.PostTime;
 }
 public LiveNotification(CaveTubeClient.LiveNotification liveInfo)
 {
     this.Author = liveInfo.Author;
     this.Title = liveInfo.Title;
     this.RoomId = liveInfo.RoomId;
 }
 private void UnBan(CaveTubeClient.Message message)
 {
     if (this.OnUnBan != null) {
         this.OnUnBan(new Message(message));
     }
 }
 private void NotifyLiveStart(CaveTubeClient.LiveNotification e)
 {
     if (this.OnNotifyLiveStart != null) {
         this.OnNotifyLiveStart(new LiveNotification(e));
     }
 }
 private void NewMessage(CaveTubeClient.Message message)
 {
     if (this.OnNewMessage != null) {
         this.OnNewMessage(new Message(message));
     }
 }