public NoteEntity(PromptCloudNotes.Model.Note note)
     :base(note.ParentList.Id, note.Id)
 {
     Name = note.Name;
     Description = note.Description;
     CreatorId = note.Creator.UniqueId;
 }
        public bool Send(PromptCloudNotes.Model.Notification notification)
        {
            if (notification.Task is PromptCloudNotes.Model.TaskList)
            {
            }
            else
            {
                if (notification.Type == PromptCloudNotes.Model.Notification.NotificationType.Insert)
                {
                    var context = GlobalHost.ConnectionManager.GetHubContext<NotificationHub>();
                    context.Clients[notification.User.UniqueId + notification.Task.ParentList.Id].
                        NewNote(new MvcModel.Note()
                        {
                            id = notification.Task.Id,
                            listId = notification.Task.ParentList.Id,
                            listCreatorId = notification.Task.ParentList.Creator.UniqueId,
                            name = notification.Task.Name,
                            description = notification.Task.Description
                        });
                    return true;
                }
            }

            return false;
        }
 public TaskListNotification(PromptCloudNotes.Model.Notification data)
 {
     listId = data.Task.Id;
     switch (data.Type)
     {
         case PromptCloudNotes.Model.Notification.NotificationType.Share:
             type = "share";
             break;
         case PromptCloudNotes.Model.Notification.NotificationType.Insert:
             type = "insert";
             break;
         case PromptCloudNotes.Model.Notification.NotificationType.Update:
             type = "update";
             break;
         case PromptCloudNotes.Model.Notification.NotificationType.Delete:
             type = "delete";
             break;
     }
 }
 public bool Send(PromptCloudNotes.Model.Notification notification)
 {
     return false;
 }
 public void DeleteMessage(PromptCloudNotes.Model.Notification newEntity)
 {
     throw new NotImplementedException();
 }
 public void SendMessage(PromptCloudNotes.Model.Notification newEntity)
 {
 }
 public void UpdateData(PromptCloudNotes.Model.Note noteData)
 {
     Name = noteData.Name;
     Description = noteData.Description;
 }