Exemplo n.º 1
0
 public ChatHub(ILogger <ChatHub> logger, IMessage messageService, ICommunication communicationService, ICommonResource commonResource)
 {
     _logger               = logger;
     _messageService       = messageService;
     _communicationService = communicationService;
     _commonResource       = commonResource;
 }
Exemplo n.º 2
0
 public IndexModel(ICommunication communication, ICommonResource commonResource, IUserService userService)
 {
     /* For Profile */
     _commonResource = commonResource;
     _communication  = communication;
     _userService    = userService;
 }
Exemplo n.º 3
0
        protected override void AwakeOverride()
        {
            base.AwakeOverride();
            m_settings       = IOCCore.Resolve <ISettings>();
            m_audio          = IOCCore.Resolve <IAudio>();
            m_commonResource = IOCCore.Resolve <ICommonResource>();
            m_webInterace    = IOCCore.Resolve <IWebInterface>();

            m_hourValidator.m_timeForm   = this;
            m_minuteValidator.m_timeForm = this;
            if (m_meetingHour.inputValidator != null && m_meetingHour.inputValidator is TimeInputValidator hourValidator)
            {
                hourValidator.m_timeForm = this;
            }
            if (m_meetingMinute.inputValidator != null && m_meetingMinute.inputValidator is TimeInputValidator minuteValidator)
            {
                minuteValidator.m_timeForm = this;
            }
            m_inputs.Clear();
            m_inputs = new List <TMP_InputField>()
            {
                m_meetingTitle, m_meetingDate, m_meetingHour, m_meetingMinute, m_meetingDurationHour, m_meetingDurationMinute
            };

            for (int i = 0; i < m_inputs.Count; i++)
            {
                int index = i;
                m_inputs[i].onSelect.AddListener((val) => m_inputIndex = index);
            }
        }
Exemplo n.º 4
0
        private IEnumerator Start()
        {
            yield return(null);

            m_commonResource = IOCCore.Resolve <ICommonResource>();
            m_sfxGroups      = m_commonResource.AssetDb.SFXGroups;
        }
Exemplo n.º 5
0
 public IndexModel(ILogger <IndexModel> logger, IEmailSender emailSender, ICommonResource commonResource, IUserService userService, UserManager <HopeLineUser> userManager)
 {
     _logger         = logger;
     _emailSender    = emailSender;
     _commonResource = commonResource;
     _userService    = userService;
     _userManager    = userManager;
 }
Exemplo n.º 6
0
 protected virtual void Awake()
 {
     m_screenRootScale   = m_screensRoot.localScale;
     m_audio             = IOCCore.Resolve <IAudio>();
     m_experienceMachine = IOCCore.Resolve <IExperienceMachine>();
     m_commonResource    = IOCCore.Resolve <ICommonResource>();
     m_settings          = IOCCore.Resolve <ISettings>();
     m_uiEngine          = IOCCore.Resolve <IUIEngine>();
 }
Exemplo n.º 7
0
 protected override void AwakeOverride()
 {
     base.AwakeOverride();
     m_settings       = IOCCore.Resolve <ISettings>();
     m_audio          = IOCCore.Resolve <IAudio>();
     m_commonResource = IOCCore.Resolve <ICommonResource>();
     m_webInterace    = IOCCore.Resolve <IWebInterface>();
     m_uiEngine.InputModuleChangeEvent += OnInputModuleChange;
     m_microphoneDropdown.onValueChanged.AddListener((val) => RefreshMikeDisplay());
 }
Exemplo n.º 8
0
        protected void Awake()
        {
            m_experienceMachine = IOCCore.Resolve <IExperienceMachine>();
            m_audio             = IOCCore.Resolve <IAudio>();
            m_commonResource    = IOCCore.Resolve <ICommonResource>();
            m_settings          = IOCCore.Resolve <ISettings>();
            m_webInterface      = IOCCore.Resolve <IWebInterface>();
            m_network           = IOCCore.Resolve <INetwork>();
            m_uiEngine          = IOCCore.Resolve <IUIEngine>();

            AwakeOverride();
        }
Exemplo n.º 9
0
        public ResourcesModel(ICommonResource commonResource, IUserService userService, UserManager <HopeLineUser> userManager)
        {
            _commonResource = commonResource;
            _userService    = userService;
            _userManager    = userManager;

            Resources     = new List <ResourcesViewModel>();
            DepressionRes = new List <ResourcesViewModel>();
            AnxietyRes    = new List <ResourcesViewModel>();
            BullyingRes   = new List <ResourcesViewModel>();
            SuicideRes    = new List <ResourcesViewModel>();
        }
Exemplo n.º 10
0
        public virtual void OnLoad()
        {
            AudioSelectionFlag = false;
            if (m_settings == null)
            {
                m_settings = IOCCore.Resolve <ISettings>();
            }
            if (m_audio == null)
            {
                m_audio = IOCCore.Resolve <IAudio>();
            }
            if (m_experienceMachine == null)
            {
                m_experienceMachine = IOCCore.Resolve <IExperienceMachine>();
            }
            if (m_commonResource == null)
            {
                m_commonResource = IOCCore.Resolve <ICommonResource>();
            }

            var musicCategories = GetCategories(ResourceType.MUSIC);

            if (musicCategories == null || musicCategories.Length == 0)
            {
                return;
            }

            ExperienceResource[] resources = null;

            if (Selection.MusicGroup != null && Array.FindIndex(musicCategories, item => item != null && item.Name.Equals(Selection.MusicGroup)) != -1)
            {
                resources = GetResource(ResourceType.MUSIC, Selection.MusicGroup);
            }
            else
            {
                resources = GetResource(ResourceType.MUSIC, musicCategories[UnityEngine.Random.Range(0, musicCategories.Length)].Name);
            }

            if (resources == null || resources.Length == 0)
            {
                return;
            }

            AudioClip clip = ((AudioResource)resources[UnityEngine.Random.Range(0, resources.Length)]).Clip;

            Selection.Music = clip;
            AudioArgs args = new AudioArgs(clip, AudioType.MUSIC);

            m_audio.Play(args);
        }
Exemplo n.º 11
0
        public IndexModel(
            /* For Profile */
            ICommunication communication, ICommonResource commonResource, IUserService userService,
            /*For Change Password*/
            UserManager <HopeLineUser> userManager, SignInManager <HopeLineUser> signInManager, ILogger <ChangePasswordModel> logger)
        {
            /* For Profile */
            _commonResource = commonResource;
            _communication  = communication;
            _userService    = userService;

            /*For Change Password*/
            _userManager   = userManager;
            _signInManager = signInManager;
            _logger        = logger;
        }
Exemplo n.º 12
0
 protected virtual void AwakeOverride()
 {
     m_experienceMachine = ExperienceMachine;
     m_appTheme          = AppTheme;
     m_audio             = Audio;
     m_commonResource    = CommonResource;
     m_settings          = Settings;
     m_fordiNetwork      = FordiNetwork;
     m_webInterface      = WebInterface;
     m_network           = Network;
     m_voiceChat         = VoiceChat;
     //m_annotation = Annotation;
     m_settings        = Settings;
     m_uiEngine        = UIEngine;
     m_assetLoader     = AssetLoader;
     m_pluginHook      = PluginHook;
     m_permissions     = Permissions;
     m_animationEngine = AnimationEngine;
 }
Exemplo n.º 13
0
 public AllResourcesController(ILogger <AllResourcesController> logger, ICommonResource commonResource)
 {
     _logger         = logger;
     _commonResource = commonResource;
 }
Exemplo n.º 14
0
 public PopulateController(UserManager <HopeLineUser> userManager, ICommonResource commonResource)
 {
     _userManager    = userManager;
     _commonResource = commonResource;
 }
Exemplo n.º 15
0
 public DeityController(ICommonResource commonResource, IDeityService deityService)
 {
     _commonResource = commonResource;
     _deityService   = deityService;
 }
Exemplo n.º 16
0
 /// <summary>
 /// Constructor for temple controller.
 /// </summary>
 /// <param name="offeringTransactionService">The service for offering transaction.</param>
 /// <param name="commonResource"></param>
 public OfferingTransactionController(IOfferingTransactionService offeringTransactionService, ICommonResource commonResource)
 {
     _offeringTransactionService = offeringTransactionService;
     _commonResource             = commonResource;
 }
Exemplo n.º 17
0
 public ChatModel(ICommunication communication, ICommonResource commonResource)
 {
     _commonResource = commonResource;
     _communication  = communication;
 }
Exemplo n.º 18
0
 public OfferingPreBookingController(ICommonResource commonResource, IOfferingPreBookingService offeringPreBookingService)
 {
     _commonResource            = commonResource;
     _offeringPreBookingService = offeringPreBookingService;
 }
 /// <summary>
 /// Constructor for temple controller.
 /// </summary>
 /// <param name="templeService">The service for temple.</param>
 /// <param name="commonResource"></param>
 public OfferingController(IOfferingService offeringService, ICommonResource commonResource)
 {
     _offeringService = offeringService;
     _commonResource  = commonResource;
 }
Exemplo n.º 20
0
 public MessageService(ILogger <MessageService> logger, ICommonResource commonResource, ChatDbContext chatDb)
 {
     _logger         = logger;
     _commonResource = commonResource;
     _chatDb         = chatDb;
 }
Exemplo n.º 21
0
 public ExpenseController(IExpenseService expenseService, ICommonResource commonResource)
 {
     _expenseService = expenseService;
     _commonResource = commonResource;
 }
Exemplo n.º 22
0
 public CommunityModel(ICommonResource commonResources, IUserService userService, UserManager <HopeLineUser> userManager)
 {
     _commonResource = commonResources;
     _userService    = userService;
     _userManager    = userManager;
 }
Exemplo n.º 23
0
 public UserController(IUserService userService, ICommonResource commonResource)
 {
     _userService    = userService;
     _commonResource = commonResource;
 }
Exemplo n.º 24
0
 /// <summary>
 /// Constructor for injection.
 /// </summary>
 /// <param name="branchServive">The branch service to inject.</param>
 public IncomeController(IIncomeService incomeService, ICommonResource commonResource)
 {
     _incomeService  = incomeService;
     _commonResource = commonResource;
 }
 /// <summary>
 /// Constructor for injection.
 /// </summary>
 /// <param name="branchServive">The branch service to inject.</param>
 public BatchAssignmentController(IBatchAssignmentService batchAssignmentService, ICommonResource commonResource)
 {
     _batchAssignmentService = batchAssignmentService;
     _commonResource         = commonResource;
 }
Exemplo n.º 26
0
 /// <summary>
 /// Constructor for injection.
 /// </summary>
 /// <param name="branchServive">The branch service to inject.</param>
 public BatchController(IBatchService batchService, ICommonResource commonResource)
 {
     _batchService   = batchService;
     _commonResource = commonResource;
 }
Exemplo n.º 27
0
 /// <summary>
 /// Constructor for temple controller.
 /// </summary>
 /// <param name="templeService">The service for temple.</param>
 /// <param name="commonResource"></param>
 public TempleController(ITempleService templeService, ICommonResource commonResource)
 {
     _templeService  = templeService;
     _commonResource = commonResource;
 }
Exemplo n.º 28
0
 public CourseController(ICourseService courseService, ICommonResource commonResource)
 {
     _courseService  = courseService;
     _commonResource = commonResource;
 }
Exemplo n.º 29
0
 public InstantChatModel(ICommunication communication, ICommonResource commonResource, SignInManager <HopeLineUser> signInManager)
 {
     _commonResource = commonResource;
     _communication  = communication;
     _signInManager  = signInManager;
 }
Exemplo n.º 30
0
 public ResponseDto(ICommonResource commonResource)
 {
     _commonResource = commonResource;
     this.Message    = _commonResource.SaveSuccess;
 }