/// <summary> /// Initializes a new instance of the <see cref="DiscordService"/> class. /// </summary> /// <param name="cacheService">The app's cache service.</param> /// <param name="gatewayService">The app's gateway service.</param> /// <param name="subFrameNavigationService">The app's subframe navigation service.</param> public DiscordService( ICacheService cacheService, IGatewayService gatewayService, ISubFrameNavigationService subFrameNavigationService) { _cacheService = cacheService; _gatewayService = gatewayService; _subFrameNavigationService = subFrameNavigationService; }
/// <summary> /// Initializes a new instance of the <see cref="MainViewModel"/> class. /// </summary> /// <param name="analyticsService">The app's analytics service.</param> /// <param name="cacheService">The app's cache service.</param> /// <param name="settingsService">The app's settings service.</param> /// <param name="channelsService">The app's channel service.</param> /// <param name="discordService">The app's discord service.</param> /// <param name="currentUserService">The app's current user service.</param> /// <param name="gatewayService">The app's gateway service.</param> /// <param name="presenceService">The app's presence service.</param> /// <param name="guildsService">The app's guilds service.</param> /// <param name="subFrameNavigationService">The app's subframe navigation service.</param> /// <param name="friendsService">The app's friends service.</param> /// <param name="dispatcherHelper">The app's dispatcher helper.</param> /// <param name="voiceService">The app's voice service.</param> /// <param name="clipboardService">The app's clipboard service.</param> /// <remarks>Takes all service parameters from ViewModel Locator.</remarks> public MainViewModel( IAnalyticsService analyticsService, ICacheService cacheService, ISettingsService settingsService, IChannelsService channelsService, IDiscordService discordService, ICurrentUserService currentUserService, IGatewayService gatewayService, IPresenceService presenceService, IGuildsService guildsService, ISubFrameNavigationService subFrameNavigationService, IFriendsService friendsService, IDispatcherHelper dispatcherHelper, IVoiceService voiceService, IClipboardService clipboardService) { _analyticsService = analyticsService; _cacheService = cacheService; _settingsService = settingsService; _discordService = discordService; _currentUserService = currentUserService; _channelsService = channelsService; _friendsService = friendsService; _presenceService = presenceService; _gatewayService = gatewayService; _guildsService = guildsService; _subFrameNavigationService = subFrameNavigationService; _dispatcherHelper = dispatcherHelper; _voiceService = voiceService; _clipboardService = clipboardService; RegisterGenericMessages(); RegisterChannelsMessages(); RegisterGuildsMessages(); RegisterMembersMessages(); RegisterMessagesMessages(); }