private void SendNotification(Int64 messageId, Int64 tkUserId, ModuleTicket.NotificationActionType actionType) { ////SE non ho un ID messaggio di riferimento, NON INVIO NOTIFICHE!!! if (messageId <= 0) { //throw new ArgumentNullException("messageId"); return; } //test ID community //int currentCommunityId = UserContext.CurrentCommunityID; NotificationAction action = new NotificationAction(); action.IdCommunity = CurrentCommunityId; action.IdObject = messageId; action.IdObjectType = (long)ModuleTicket.ObjectType.Message; action.ModuleCode = ModuleTicket.UniqueCode; action.IdModuleUsers = new List <long>(); action.IdModuleUsers.Add(tkUserId); action.IdModuleAction = (long)actionType; //IList<NotificationAction> actions = new List<NotificationAction>(); //actions.Add(action); //action.IdModuleAction = (long) ModuleTicket.MailSenderActionType.TicketSendMessageMan; View.SendNotification(action, UserContext.CurrentUserID); }
private void SendNotification(Int64 messageId, Int64 tkUserId, ModuleTicket.NotificationActionType actionType) { SettingsPortal settingsPortal = service.PortalSettingsGet(); if (!(settingsPortal.IsNotificationUserActive && settingsPortal.IsNotificationManActive)) { return; } //test ID community int currentCommunityId = UserContext.CurrentCommunityID; NotificationAction action = new NotificationAction(); action.IdCommunity = currentCommunityId; action.IdObject = messageId; action.IdObjectType = (long)ModuleTicket.ObjectType.Message; action.ModuleCode = ModuleTicket.UniqueCode; action.IdModuleUsers = new List <long>(); action.IdModuleUsers.Add(tkUserId); action.IdModuleAction = (long)actionType; //IList<NotificationAction> actions = new List<NotificationAction>(); //actions.Add(action); //action.IdModuleAction = (long) ModuleTicket.MailSenderActionType.TicketSendMessageMan; View.SendNotification(action, UserContext.CurrentUserID); }
private void SendNotification(Int64 messageId, ModuleTicket.NotificationActionType actionType) { //test ID community //int currentCommunityId = UserContext.CurrentCommunityID; NotificationAction action = new NotificationAction(); action.IdCommunity = -2; action.IdObject = messageId; action.IdObjectType = (long)ModuleTicket.ObjectType.Message; action.ModuleCode = ModuleTicket.UniqueCode; action.IdModuleUsers = new List <long>(); action.IdModuleUsers.Add(View.CurrentUser.UserId); action.IdModuleAction = (long)actionType; //IList<NotificationAction> actions = new List<NotificationAction>(); //actions.Add(action); //action.IdModuleAction = (long) ModuleTicket.MailSenderActionType.TicketSendMessageMan; View.SendNotification(action, UserContext.CurrentUserID); }