コード例 #1
0
        public EventService(TranslationEventService eventService,
                            IGroupRepository groupService,
                            ICommunicationRepository communicationService,
                            IContactRepository contactService,
                            IContentBlockService contentBlockService,
                            IConfigurationWrapper configurationWrapper,
                            IApiUserRepository apiUserService,
                            IContactRelationshipRepository contactRelationshipService,
                            IGroupParticipantRepository groupParticipantService,
                            IParticipantRepository participantService,
                            IRoomRepository roomService,
                            IEquipmentRepository equipmentService,
                            IEventParticipantRepository eventParticipantService)
        {
            _eventService               = eventService;
            _groupService               = groupService;
            _communicationService       = communicationService;
            _contactService             = contactService;
            _contentBlockService        = contentBlockService;
            _configurationWrapper       = configurationWrapper;
            _apiUserService             = apiUserService;
            _contactRelationshipService = contactRelationshipService;
            _groupParticipantService    = groupParticipantService;
            _participantService         = participantService;
            _roomService             = roomService;
            _equipmentService        = equipmentService;
            _eventParticipantService = eventParticipantService;

            childcareEventTypeID = configurationWrapper.GetConfigIntValue("ChildcareEventType");
            childcareGroupTypeID = configurationWrapper.GetConfigIntValue("ChildcareGroupType");
        }
コード例 #2
0
        public ServeService(IContactRepository contactService,
                            IContactRelationshipRepository contactRelationshipService,
                            IOpportunityRepository opportunityService,
                            MinistryPlatform.Translation.Repositories.Interfaces.IEventRepository eventService,
                            IParticipantRepository participantService,
                            IGroupParticipantRepository groupParticipantService,
                            IGroupRepository groupService,
                            ICommunicationRepository communicationService,
                            IAuthenticationRepository authenticationService,
                            IConfigurationWrapper configurationWrapper,
                            IApiUserRepository apiUserService,
                            IResponseRepository responseService)
        {
            _contactService             = contactService;
            _contactRelationshipService = contactRelationshipService;
            _opportunityService         = opportunityService;
            _eventService            = eventService;
            _participantService      = participantService;
            _groupParticipantService = groupParticipantService;
            _groupService            = groupService;
            _communicationService    = communicationService;
            _authenticationService   = authenticationService;
            _configurationWrapper    = configurationWrapper;
            _apiUserService          = apiUserService;
            _responseService         = responseService;
            _serveGroupType          = _configurationWrapper.GetConfigIntValue("ServeGroupType");

            _rsvpYes = _configurationWrapper.GetConfigIntValue("RSVPYesId");
        }
コード例 #3
0
        public GroupService(IGroupRepository mpGroupRepository,
                            IConfigurationWrapper configurationWrapper,
                            IEventRepository eventService,
                            IContactRelationshipRepository contactRelationshipService,
                            IServeService serveService,
                            IParticipantRepository participantService,
                            ICommunicationRepository communicationService,
                            IContactRepository contactService,
                            IObjectAttributeService objectAttributeService,
                            IApiUserRepository apiUserService,
                            IAttributeRepository attributeRepository,
                            IEmailCommunication emailCommunicationService,
                            IUserRepository userRepository,
                            IInvitationRepository invitationRepository,
                            IAttributeService attributeService,
                            IDateTime dateTimeWrapper)

        {
            _mpGroupRepository          = mpGroupRepository;
            _configurationWrapper       = configurationWrapper;
            _eventService               = eventService;
            _contactRelationshipService = contactRelationshipService;
            _serveService               = serveService;
            _participantService         = participantService;
            _communicationService       = communicationService;
            _contactService             = contactService;
            _objectAttributeService     = objectAttributeService;
            _apiUserService             = apiUserService;
            _attributeRepository        = attributeRepository;
            _emailCommunicationService  = emailCommunicationService;
            _userRepository             = userRepository;
            _invitationRepository       = invitationRepository;
            _attributeService           = attributeService;
            _domainId = configurationWrapper.GetConfigIntValue("DomainId");

            _groupRoleDefaultId           = _configurationWrapper.GetConfigIntValue("Group_Role_Default_ID");
            _defaultAuthorUserId          = configurationWrapper.GetConfigIntValue("DefaultAuthorUser");
            _defaultContactEmailId        = _configurationWrapper.GetConfigIntValue("DefaultContactEmailId");
            _journeyGroupTypeId           = configurationWrapper.GetConfigIntValue("JourneyGroupTypeId");
            _groupCategoryAttributeTypeId = configurationWrapper.GetConfigIntValue("GroupCategoryAttributeTypeId");
            _groupTypeAttributeTypeId     = configurationWrapper.GetConfigIntValue("GroupTypeAttributeTypeId");
            _groupAgeRangeAttributeTypeId = configurationWrapper.GetConfigIntValue("GroupAgeRangeAttributeTypeId");
            _groupRoleLeader               = configurationWrapper.GetConfigIntValue("GroupRoleLeader");
            _onsiteGroupTypeId             = _configurationWrapper.GetConfigIntValue("OnsiteGroupTypeId");
            _childcareEventTypeId          = _configurationWrapper.GetConfigIntValue("ChildcareEventType");
            _removeSelfFromGroupTemplateId = _configurationWrapper.GetConfigIntValue("RemoveSelfFromGroupTemplateId");
            _dateTimeWrapper               = dateTimeWrapper;
        }