public void SendRemovingFromProjectTeam(Guid userId, Project project) { var recipient = ToRecipient(userId); if (recipient != null) { client.SendNoticeToAsync( NotifyConstants.Event_RemoveFromProject, project.UniqID, new[] { recipient }, true, new TagValue(NotifyConstants.Tag_ProjectID, project.ID), new TagValue(NotifyConstants.Tag_ProjectTitle, project.Title), ReplyToTagProvider.Message(project.ID)); } }
public void SendInvaiteToProjectTeam(Guid userId, Project project) { var recipient = ToRecipient(userId); if (recipient != null) { client.SendNoticeToAsync( NotifyConstants.Event_InviteToProject, project.UniqID, new[] { recipient }, GetDefaultSenders(recipient), null, new TagValue(NotifyConstants.Tag_ProjectID, project.ID), new TagValue(NotifyConstants.Tag_ProjectTitle, project.Title), ReplyToTagProvider.Message(project.ID)); } }
public void SendAboutResponsibleByProject(Guid responsible, Project project) { var recipient = ToRecipient(responsible); if (recipient != null) { client.SendNoticeToAsync( NotifyConstants.Event_ResponsibleForProject, project.UniqID, new[] { recipient }, GetDefaultSenders(recipient), null, new TagValue(NotifyConstants.Tag_ProjectID, project.ID), new TagValue(NotifyConstants.Tag_ProjectTitle, project.Title), new TagValue(NotifyConstants.Tag_AdditionalData, project.Description), ReplyToTagProvider.Message(project.ID)); } }
public void SendInvaiteToProjectTeam(Guid userId, Project project) { var recipient = ToRecipient(userId); if (recipient != null) { client.SendNoticeToAsync( NotifyConstants.Event_InviteToProject, project.UniqID, new[] { recipient }, true, new TagValue(NotifyConstants.Tag_ProjectID, project.ID), new TagValue(NotifyConstants.Tag_ProjectTitle, project.Title), ReplyToTagProvider.Message(project.ID), new AdditionalSenderTag("push.sender"), new TagValue(PushConstants.PushItemTagName, new PushItem(PushItemType.Project, project.ID.ToString(), project.Title)), new TagValue(PushConstants.PushModuleTagName, PushModule.Projects), new TagValue(PushConstants.PushActionTagName, PushAction.InvitedTo)); } }
public void SendAboutResponsibleByProject(Guid responsible, Project project) { var recipient = ToRecipient(responsible); if (recipient != null) { client.SendNoticeToAsync( NotifyConstants.Event_ResponsibleForProject, project.UniqID, new[] { recipient }, true, new TagValue(NotifyConstants.Tag_ProjectID, project.ID), new TagValue(NotifyConstants.Tag_ProjectTitle, project.Title), new TagValue(NotifyConstants.Tag_AdditionalData, project.Description), ReplyToTagProvider.Message(project.ID), new AdditionalSenderTag("push.sender"), new TagValue(PushConstants.PushItemTagName, new PushItem(PushItemType.Project, project.ID.ToString(), project.Title)), new TagValue(PushConstants.PushModuleTagName, PushModule.Projects), new TagValue(PushConstants.PushActionTagName, PushAction.Assigned)); } }