コード例 #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 ContentBlockApiController(
     IContentBlockService service,
     Lazy <ILocalizablePropertyService> localizablePropertyService)
     : base(service)
 {
     this.localizablePropertyService = localizablePropertyService;
 }
コード例 #3
0
 public GroupService(IMinistryPlatformService ministryPlatformService, IConfigurationWrapper configurationWrapper, IAuthenticationService authenticationService, ICommunicationService communicationService, IContactService contactService, IContentBlockService contentBlockService)
     : base(authenticationService, configurationWrapper)
 {
     this.ministryPlatformService = ministryPlatformService;
     this._configurationWrapper = configurationWrapper;
     this._communicationService = communicationService;
     this._contactService = contactService;
     this._contentBlockService = contentBlockService;
 }
コード例 #4
0
        public StripePaymentProcessorService(IRestClient stripeRestClient, IConfigurationWrapper configuration, IContentBlockService contentBlockService)
        {
            _stripeRestClient       = stripeRestClient;
            _maxQueryResultsPerPage = configuration.GetConfigIntValue("MaxStripeQueryResultsPerPage");

            var stripeApiVersion = configuration.GetEnvironmentVarAsString("CRDS_STRIPE_API_VERSION", false);

            if (stripeApiVersion != null)
            {
                _stripeRestClient.AddDefaultHeader("Stripe-Version", stripeApiVersion);
            }

            _contentBlockService = contentBlockService;
        }
コード例 #5
0
 public PageContentController(
     IPageService pageService,
     IPageVersionService pageVersionService,
     IPageTypeService pageTypeService,
     IContentBlockService contentBlockService,
     IRepository <Zone> zoneRepository,
     Lazy <IMembershipService> membershipService)
     : base()
 {
     this.pageService         = pageService;
     this.pageVersionService  = pageVersionService;
     this.pageTypeService     = pageTypeService;
     this.contentBlockService = contentBlockService;
     this.zoneRepository      = zoneRepository;
     this.membershipService   = membershipService;
 }
コード例 #6
0
        public GroupToolService(
            IGroupToolRepository groupToolRepository,
            IGroupRepository groupRepository,
            IGroupService groupService,
            IParticipantRepository participantRepository,
            ICommunicationRepository communicationRepository,
            IContentBlockService contentBlockService,
            IConfigurationWrapper configurationWrapper,
            IInvitationRepository invitationRepository,
            IAddressProximityService addressProximityService,
            IContactRepository contactRepository,
            IAddressProximityService addressMatrixService,
            IEmailCommunication emailCommunicationService,
            IAttributeService attributeService)
        {
            _groupToolRepository       = groupToolRepository;
            _groupRepository           = groupRepository;
            _groupService              = groupService;
            _participantRepository     = participantRepository;
            _communicationRepository   = communicationRepository;
            _contentBlockService       = contentBlockService;
            _invitationRepository      = invitationRepository;
            _addressProximityService   = addressProximityService;
            _contactRepository         = contactRepository;
            _addressMatrixService      = addressMatrixService;
            _emailCommunicationService = emailCommunicationService;
            _attributeService          = attributeService;

            _defaultGroupContactEmailId = configurationWrapper.GetConfigIntValue("DefaultGroupContactEmailId");
            _defaultAuthorUserId        = configurationWrapper.GetConfigIntValue("DefaultAuthorUser");
            _groupRoleLeaderId          = configurationWrapper.GetConfigIntValue("GroupRoleLeader");
            _defaultGroupRoleId         = configurationWrapper.GetConfigIntValue("Group_Role_Default_ID");
            _groupRequestPendingReminderEmailTemplateId = configurationWrapper.GetConfigIntValue("GroupRequestPendingReminderEmailTemplateId");
            _attributeTypeGroupCategory = configurationWrapper.GetConfigIntValue("GroupCategoryAttributeTypeId");

            _removeParticipantFromGroupEmailTemplateId = configurationWrapper.GetConfigIntValue("RemoveParticipantFromGroupEmailTemplateId");

            _domainId = configurationWrapper.GetConfigIntValue("DomainId");
            _groupEndedParticipantEmailTemplate = Convert.ToInt32(configurationWrapper.GetConfigIntValue("GroupEndedParticipantEmailTemplate"));
            _groupRequestToJoinEmailTemplate    = configurationWrapper.GetConfigIntValue("GroupRequestToJoinEmailTemplate");
            _baseUrl = configurationWrapper.GetConfigValue("BaseURL");
            _addressMatrixSearchDepth = configurationWrapper.GetConfigIntValue("AddressMatrixSearchDepth");

            _smallGroupTypeId  = configurationWrapper.GetConfigIntValue("SmallGroupTypeId");
            _onsiteGroupTypeId = configurationWrapper.GetConfigIntValue("OnsiteGroupTypeId");
        }
コード例 #7
0
 public GroupRepository(IMinistryPlatformService ministryPlatformService,
                        IMinistryPlatformRestRepository ministryPlatformRestRepository,
                        IConfigurationWrapper configurationWrapper,
                        IAuthenticationRepository authenticationService,
                        ICommunicationRepository communicationService,
                        IContactRepository contactService,
                        IContentBlockService contentBlockService,
                        IAddressRepository addressRepository,
                        IObjectAttributeRepository objectAttributeRepository)
     : base(authenticationService, configurationWrapper)
 {
     this.ministryPlatformService    = ministryPlatformService;
     _ministryPlatformRestRepository = ministryPlatformRestRepository;
     _configurationWrapper           = configurationWrapper;
     _communicationService           = communicationService;
     _contactService            = contactService;
     _contentBlockService       = contentBlockService;
     _addressRepository         = addressRepository;
     _objectAttributeRepository = objectAttributeRepository;
 }
コード例 #8
0
 public EventService(TranslationEventService eventService,
                     IGroupService groupService,
                     ICommunicationService communicationService,
                     IContactService contactService,
                     IContentBlockService contentBlockService,
                     IConfigurationWrapper configurationWrapper,
                     IApiUserService apiUserService,
                     IContactRelationshipService contactRelationshipService,
                     IGroupParticipantService groupParticipantService, IParticipantService participantService)
 {
     _eventService = eventService;
     _groupService = groupService;
     _communicationService = communicationService;
     _contactService = contactService;
     _contentBlockService = contentBlockService;
     _configurationWrapper = configurationWrapper;
     _apiUserService = apiUserService;
     _contactRelationshipService = contactRelationshipService;
     _groupParticipantService = groupParticipantService;
     _participantService = participantService;
 }
コード例 #9
0
 public DefaultContentBlockProvider(IContentBlockService contentBlockService)
 {
     this.contentBlockService = contentBlockService;
 }
コード例 #10
0
        public GroupToolService(
            IGroupToolRepository groupToolRepository,
            IGroupRepository groupRepository,
            IGroupService groupService,
            IParticipantRepository participantRepository,
            ICommunicationRepository communicationRepository,
            IContentBlockService contentBlockService,
            IConfigurationWrapper configurationWrapper,
            IInvitationRepository invitationRepository,
            IAddressProximityService addressProximityService,
            IContactRepository contactRepository,
            IAddressProximityService addressMatrixService,
            IEmailCommunication emailCommunicationService,
            IAttributeService attributeService,
            IAddressService addressService,
            IAnalyticsService analyticsService,
            IFinderRepository finderRepository
            )
        {
            _groupToolRepository       = groupToolRepository;
            _groupRepository           = groupRepository;
            _groupService              = groupService;
            _participantRepository     = participantRepository;
            _communicationRepository   = communicationRepository;
            _contentBlockService       = contentBlockService;
            _invitationRepository      = invitationRepository;
            _addressProximityService   = addressProximityService;
            _contactRepository         = contactRepository;
            _addressMatrixService      = addressMatrixService;
            _emailCommunicationService = emailCommunicationService;
            _attributeService          = attributeService;
            _addressService            = addressService;
            _analyticsService          = analyticsService;
            _finderRepository          = finderRepository;

            _defaultGroupContactEmailId = configurationWrapper.GetConfigIntValue("DefaultGroupContactEmailId");
            _defaultAuthorUserId        = configurationWrapper.GetConfigIntValue("DefaultAuthorUser");
            _groupRoleLeaderId          = configurationWrapper.GetConfigIntValue("GroupRoleLeader");
            _defaultGroupRoleId         = configurationWrapper.GetConfigIntValue("Group_Role_Default_ID");
            _groupRequestPendingReminderEmailTemplateId = configurationWrapper.GetConfigIntValue("GroupRequestPendingReminderEmailTemplateId");
            _attributeTypeGroupCategory = configurationWrapper.GetConfigIntValue("GroupCategoryAttributeTypeId");

            _genericGroupForCMSMergeEmailTemplateId = configurationWrapper.GetConfigIntValue("GenericGroupForCMSMergeEmailTemplateId");

            _connectCommunicationTypeEmailSmallGroupLeader = configurationWrapper.GetConfigIntValue("ConnectCommunicationTypeEmailSmallGroupLeader");
            _connectCommunicationStatusNA = configurationWrapper.GetConfigIntValue("ConnectCommunicationStatusNA");
            _domainId = configurationWrapper.GetConfigIntValue("DomainId");
            _groupEndedParticipantEmailTemplate      = configurationWrapper.GetConfigIntValue("GroupEndedParticipantEmailTemplate");
            _gatheringHostAcceptTemplate             = configurationWrapper.GetConfigIntValue("GatheringHostAcceptTemplate");
            _gatheringHostDenyTemplate               = configurationWrapper.GetConfigIntValue("GatheringHostDenyTemplate");
            _groupRequestToJoinEmailTemplate         = configurationWrapper.GetConfigIntValue("GroupRequestToJoinEmailTemplate");
            _anywhereGroupRequestToJoinEmailTemplate = configurationWrapper.GetConfigIntValue("AnywhereGroupRequestToJoinEmailTemplate");
            _baseUrl = configurationWrapper.GetConfigValue("BaseURL");
            _addressMatrixSearchDepth = configurationWrapper.GetConfigIntValue("AddressMatrixSearchDepth");

            _smallGroupTypeId              = configurationWrapper.GetConfigIntValue("SmallGroupTypeId");
            _onsiteGroupTypeId             = configurationWrapper.GetConfigIntValue("OnsiteGroupTypeId");
            _anywhereGroupType             = configurationWrapper.GetConfigIntValue("AnywhereGroupTypeId");
            _connectGatheringStatusAccept  = configurationWrapper.GetConfigIntValue("ConnectCommunicationStatusAccepted");
            _connectGatheringStatusDeny    = configurationWrapper.GetConfigIntValue("ConnectCommunicationStatusDeclined");
            _connectGatheringRequestToJoin = configurationWrapper.GetConfigIntValue("ConnectCommunicationTypeRequestToJoinGathering");
            _connectCommunicationTypeRequestToJoinSmallGroup = configurationWrapper.GetConfigIntValue("ConnectCommunicationTypeRequestToJoinSmallGroup");
            _emailAuthorId          = configurationWrapper.GetConfigIntValue("EmailAuthorId");
            _groupRoleTrialMemberId = configurationWrapper.GetConfigIntValue("GroupsTrialMemberRoleId");
        }
コード例 #11
0
 public StripeService(IRestClient stripeRestClient, IConfigurationWrapper configuration, IContentBlockService contentBlockService)
 {
     _stripeRestClient = stripeRestClient;
     _maxQueryResultsPerPage = configuration.GetConfigIntValue("MaxStripeQueryResultsPerPage");
     _contentBlockService = contentBlockService;
 }