/// <summary> /// Marque une assignation comme étant complétée ou non /// </summary> public void UpdateTaskCompleted(object taskID, bool completed) { try { mainControl.TaskService.UpdateTaskCompleted(taskID, completed); } catch (ServiceException serviceException) { ExceptionLog.LogTheError(serviceException.Message); } }
/// <summary> /// Retire une assignation faite à une personne /// </summary> public void RemoveAssignation(object taskID, object personID) { try { mainControl.AssignationService.RemoveAssignation(taskID, personID); } catch (ServiceException serviceException) { ExceptionLog.LogTheError(serviceException.Message); } }
/// <summary> /// Ajouter une personne à son groupe /// </summary> public void AddPersonToGroup(object adminID, object personToAddID, object groupID) { try { mainControl.FollowingService.AddPersonToGroup(adminID, personToAddID, groupID); } catch (ServiceException serviceException) { ExceptionLog.LogTheError(serviceException.Message); } }
/// <summary> /// Insertion du message dans la base de données /// </summary> public void InsertChatMessage(chathistory chatMessage) { try { mainControl.ChatHistoryService.InsertChatMessage(chatMessage); } catch (ServiceException serviceException) { ExceptionLog.LogTheError(serviceException.Message); } }
/// <summary> /// Efface une Task /// </summary> public void DeleteTask(object taskID) { try { mainControl.TaskService.DeleteTask(taskID); } catch (ServiceException serviceException) { ExceptionLog.LogTheError(serviceException.Message); } }
/// <summary> /// Changement du status d'un Event /// </summary> public void ChangeEventStatus(object taskID, object taskStatus) { try { mainControl.EventService.ChangeEventStatus(taskID, taskStatus); } catch (ServiceException serviceException) { ExceptionLog.LogTheError(serviceException.Message); } }
/// <summary> /// Recherche du nombre de personnes qui suivent un groupe (following) (appel du service) /// </summary> public int GetGroupFollowers(object groupID) { try { return(mainControl.FollowingService.GetTheFollowers(groupID).Count()); } catch (ServiceException serviceException) { ExceptionLog.LogTheError(serviceException.Message); return(0); } }
/// <summary> /// Recherche des messages chats pour un Groupe /// </summary> /// ////////////////////////JE DOIS ME SERVIRE DE CELLE CI //////////////////////// public List <chathistory> GetGroupChatHistory(object groupID) { try { return(mainControl.ChatHistoryService.GetAllMessagesFromGroup(groupID).ToList()); } catch (ServiceException serviceException) { ExceptionLog.LogTheError(serviceException.Message); return(null); } }
/// <summary> /// Recherche de tout les Events non complétés d'un groupe /// </summary> public List <@event> GetGroupEvent(object groupID, object date = null) { try { return(mainControl.EventService.GetGroupEvent(groupID, date).ToList()); } catch (ServiceException serviceException) { ExceptionLog.LogTheError(serviceException.Message); return(null); } }
/// <summary> /// Recherche d'un utilisateur selon un valeur donnée dans un colonne de la table person /// </summary> public List <person> GetPersonBy(string columnName, object value) { try { return(mainControl.PersonService.GetBy(columnName, value).ToList()); } catch (ServiceException serviceException) { ExceptionLog.LogTheError(serviceException.Message); return(null); } }
/// <summary> /// Recherche de tout les personnes dont le username (email) ou le nom concorde avec la valeur recherchée /// </summary> public List <person> GetAllPersons(object searchValue) { try { return(mainControl.PersonService.GetBy(person.COLUMN_ALL, searchValue).ToList()); } catch (ServiceException serviceException) { ExceptionLog.LogTheError(serviceException.Message); return(null); } }
/// <summary> /// Validation de l'acces au site (appel du service) /// </summary> public person LoginValidation(string username, string password) { try { return(mainControl.PersonService.LoginValidation(username, password)); } catch (ServiceException serviceException) { ExceptionLog.LogTheError(serviceException.Message); return(null); } }
/// <summary> /// Recherche d'un groupe selon son ID /// </summary> public group GetGroupByID(object groupID) { try { return(mainControl.GroupService.GetByID(groupID)); } catch (ServiceException serviceException) { ExceptionLog.LogTheError(serviceException.Message); return(null); } }
/// <summary> /// Fermeture d'un groupe /// </summary> public bool CloseGroup(object adminID, object groupID) { try { return(mainControl.GroupService.CloseGroup(adminID, groupID)); } catch (ServiceException serviceException) { ExceptionLog.LogTheError(serviceException.Message); return(false); } }
/// <summary> /// Création d'une nouvelle Task dans un groupe /// </summary> public task CreateNewTask(task newTask, object groupID, object personID) { try { return(mainControl.TaskService.CreateNewTask(newTask, groupID, personID)); } catch (ServiceException serviceException) { ExceptionLog.LogTheError(serviceException.Message); return(null); } }
/// <summary> /// Recherche de toutes les Tasks associées à un groupe /// </summary> public List <task> GetGroupTasks(object groupID, bool completed) { try { return(mainControl.TaskService.GetGroupTasks(groupID, completed).ToList()); } catch (ServiceException serviceException) { ExceptionLog.LogTheError(serviceException.Message); return(null); } }
/// <summary> /// Recherche des message d'un groupe /// </summary> public List <message> GetGroupMessages(object groupID) { try { return(mainControl.MessageService.GetGroupMessages(groupID).ToList()); } catch (ServiceException serviceException) { ExceptionLog.LogTheError(serviceException.Message); return(null); } }
/// <summary> /// Creation d'un nouveau message dans un groupe /// </summary> public bool CreateNewMessage(message messageToCreate) { try { return(mainControl.MessageService.CreateNewMessage(messageToCreate)); } catch (ServiceException serviceException) { ExceptionLog.LogTheError(serviceException.Message); return(false); } }
/// <summary> /// Vérification si la personne est l'administrateur du groupe /// </summary> public bool PersonIsGroupAdmin(object activePersonID, object activeGroupID) { try { return(mainControl.FollowingService.PersonIsGroupAdmin(activePersonID, activeGroupID)); } catch (ServiceException serviceException) { ExceptionLog.LogTheError(serviceException.Message); return(false); } }
/// <summary> /// Retire une personne du groupe /// </summary> /// <param name="groupID">Le groupe ID du groupe à modifier</param> /// <param name="followerID">Le ID de la person à retirer du groupe</param> /// <returns>True si la personne à été retiré, une erreur sinon</returns> public bool RemoveTheFollower(object groupID, object followerID) { try { return(mainControl.FollowingService.RemoveTheFollower(groupID, followerID)); } catch (ServiceException serviceException) { ExceptionLog.LogTheError(serviceException.Message); return(false); } }
/// <summary> /// Mise à jour d'un utilisateur /// </summary> public person UpdatePerson(object personID, person personToUpdate) { try { return(mainControl.PersonService.UpdatePerson(personID, personToUpdate)); } catch (ServiceException serviceException) { ExceptionLog.LogTheError(serviceException.Message); return(null); } }
/// <summary> /// Recherche des personnes qui suivent un groupe (following) /// </summary> public List <person> GetGroupFollowers(object groupID) { try { return(mainControl.FollowingService.GetTheFollowers(groupID).ToList()); } catch (ServiceException serviceException) { ExceptionLog.LogTheError(serviceException.Message); return(null); } }
/// <summary> /// Assignation d'une Person à une Task /// </summary> public assignation AssignTaskToPerson(assignation newAssignation) { try { return(mainControl.AssignationService.AssignTaskToPerson(newAssignation)); } catch (ServiceException serviceException) { ExceptionLog.LogTheError(serviceException.Message); return(null); } }
/// <summary> /// Enregistrement d'un nouvel utilisateur (appel du service) /// </summary> public bool RegisterUser(person newUser, string emailConfirmation, string passwordConfirmation) { try { return(mainControl.PersonService.RegisterNewUser(newUser, emailConfirmation, passwordConfirmation)); } catch (ServiceException serviceException) { ExceptionLog.LogTheError(serviceException.Message); return(false); } }
/// <summary> /// Création d'un nouveau groupe et inscription du membre à celui-ci /// </summary> public group CreateNewGroupAndRegister(group newGroup, object personID) { try { return(mainControl.GroupService.CreateNewGroupAndRegister(newGroup, personID)); } catch (ServiceException serviceException) { ExceptionLog.LogTheError(serviceException.Message); return(null); } }
/// <summary> /// Recherche des informations (person/following/groups) reliés à une person par son ID /// /// </summary> /// <param name="personID"></param> /// <returns></returns> public person GetPersonData(object personID) { try { return(mainControl.PersonService.GetPersonData(personID)); } catch (ServiceException serviceException) { ExceptionLog.LogTheError(serviceException.Message); return(null); } }
/// <summary> /// Création d'un nouvel évènement dans un groupe /// </summary> public @event CreateNewEvent(@event newEvent) { try { return(mainControl.EventService.CreateNewEvent(newEvent)); } catch (ServiceException serviceException) { ExceptionLog.LogTheError(serviceException.Message); return(null); } }
/// <summary> /// Recherche des groupes actif qu'une person suis (appel du service) /// </summary> public List <group> GetPersonGroups(object personID) { try { return(mainControl.GroupService.GetPersonGroups(personID).ToList()); } catch (ServiceException serviceException) { ExceptionLog.LogTheError(serviceException.Message); return(null); } }
/// <summary> /// Mise à jour des informations d'un groupe /// </summary> public group UpdateGroup(object groupID, group groupToUpdate) { try { return(mainControl.GroupService.UpdateGroup(groupID, groupToUpdate)); } catch (ServiceException serviceException) { ExceptionLog.LogTheError(serviceException.Message); return(null); } }