コード例 #1
0
ファイル: App.xaml.cs プロジェクト: JaoHundred/ANT
        protected async override void OnStart()
        {
            if (liteDB == null)
            {
                LiteDBHelper.StartLiteDB();
            }

            if (liteErrorLogDB == null)
            {
                LiteDBHelper.StartErrorLogLiteDB();
            }

            LiteDBHelper.MigrateLiteDB();

            // Handle when your app starts
            await ThemeManager.LoadThemeAsync();

            Jikan = new Jikan(useHttps: true);

            SettingsPreferences settings = StartSettings();

            if (settings.NotificationsIsOn && Device.RuntimePlatform == Device.Android)
            {
                await RunJobAsync(typeof(NotificationJob), WorkManagerConsts.AnimesNotificationWorkId);
            }


            //TODO: repetir o mesmo procedimento acima para essa parte, para o work de atualização de animes na lista de favoritos
            //(repetir também no BootBroadcastReceiver)
        }
コード例 #2
0
 public SyncService(
     IServiceProvider serviceProvider,
     ILogger <SyncService> logger)
 {
     _serviceProvider = serviceProvider;
     _logger          = logger;
     _jikan           = serviceProvider.CreateScope().ServiceProvider.GetRequiredService <IJikan>();
 }
コード例 #3
0
 public EntryProviderFactory(IJikan jikan, IIgnoredEntriesRepository ignored)
 {
     providers = new List <IEntryProvider>()
     {
         new JikanAnimeProvider(jikan, ignored),
         new JikanMangaProvider(jikan, ignored)
     };
     this.ignored = ignored;
 }
コード例 #4
0
 public JikanService(
     IServiceProvider serviceProvider,
     ILogger <SyncService> logger,
     ApplicationDbContext dbContext,
     IJikan jikan)
 {
     _serviceProvider = serviceProvider;
     _logger          = logger;
     _dbContext       = dbContext;
     _jikan           = jikan;
 }
コード例 #5
0
        public HSXDCCDownloader()
        {
            irc = new SimpleIRC();
            irc.DccClient.OnDccEvent += OnDccEvent;

            jikan = new Jikan();

            InitializeComponent();

            AnimeBox.MouseDoubleClick += new MouseEventHandler(AnimeBoxDoubleClick);
        }
コード例 #6
0
ファイル: MiruDbService.cs プロジェクト: iyarashii/Miru
        // constructor
        public MiruDbService(
            ICurrentSeasonModel currentSeasonModel,
            ICurrentUserAnimeListModel currentUserAnimeListModel,
            IJikan jikanWrapper,
            Func <IMiruDbContext> createMiruDbContext,
            ISyncedMyAnimeListUser syncedMyAnimeListUser,
            IWebService webService,
            Lazy <IFileSystemService> fileSystemService,
            Func <MiruAnimeModel> createMiruAnimeModel)
        {
            #region dependency injection

            CurrentSeason         = currentSeasonModel;
            CurrentUserAnimeList  = currentUserAnimeListModel;
            JikanWrapper          = jikanWrapper;
            SyncedMyAnimeListUser = syncedMyAnimeListUser;
            WebService            = webService;
            CreateMiruDbContext   = createMiruDbContext;
            FileSystemService     = fileSystemService;
            CreateMiruAnimeModel  = createMiruAnimeModel;

            #endregion dependency injection
        }
コード例 #7
0
ファイル: JikanParser.cs プロジェクト: Akenaide/Seiyuu.moe
 public JikanParser(
     string endpointUrl,
     ILoggingService loggingService,
     IAnimeRepository animeRepository,
     IAnimeStatusRepository animeStatusRepository,
     IAnimeTypeRepository animeTypeRepository,
     IBlacklistedIdRepository blacklistedIdRepository,
     ICharacterRepository characterRepository,
     IRoleRepository roleRepository,
     ISeasonRepository seasonRepository,
     ISeiyuuRepository seiyuuRepository
     )
 {
     this.jikan                   = new Jikan(endpointUrl);
     this.logger                  = loggingService;
     this.animeRepository         = animeRepository;
     this.seasonRepository        = seasonRepository;
     this.seiyuuRepository        = seiyuuRepository;
     this.animeTypeRepository     = animeTypeRepository;
     this.animeStatusRepository   = animeStatusRepository;
     this.blacklistedIdRepository = blacklistedIdRepository;
     this.characterRepository     = characterRepository;
     this.roleRepository          = roleRepository;
 }
コード例 #8
0
 public AnimeSearchTestClass()
 {
     jikan = new Jikan();
 }
コード例 #9
0
ファイル: CharacterTests.cs プロジェクト: N0D4N/jikan.net
 public CharacterTests()
 {
     _jikan = new Jikan();
 }
コード例 #10
0
 public GetSeasonArchiveAsyncTests()
 {
     _jikan = new Jikan();
 }
コード例 #11
0
 public GetTopPeopleAsyncTests()
 {
     _jikan = new Jikan();
 }
コード例 #12
0
 public GetRandomUserAsyncTests()
 {
     _jikan = new Jikan();
 }
コード例 #13
0
 public GetMangaExternalLinksAsyncTests()
 {
     _jikan = new Jikan();
 }
コード例 #14
0
 public ExceptionsTestClass()
 {
     jikan = new Jikan(true, false);
 }
コード例 #15
0
 public UserAnimeListTests()
 {
     _jikan = new Jikan();
 }
コード例 #16
0
 public UserAnimeListTestClass()
 {
     jikan = new Jikan();
 }
コード例 #17
0
 public CharacterSearchTestClass()
 {
     jikan = new Jikan();
 }
コード例 #18
0
 public JikanMangaProvider(IJikan jikan, IIgnoredEntriesRepository ignored)
 {
     this.jikan   = jikan;
     this.ignored = ignored;
 }
コード例 #19
0
ファイル: GenreTestClass.cs プロジェクト: AllanJone/jikan.net
 public GenreTestClass()
 {
     jikan = new Jikan(true);
 }
コード例 #20
0
 public TopTestClass()
 {
     jikan = new Jikan(true);
 }
コード例 #21
0
 public SearchCharacterAsyncTests()
 {
     _jikan = new Jikan();
 }
コード例 #22
0
 public GetMangaGenresAsyncTests()
 {
     _jikan = new Jikan();
 }
コード例 #23
0
 public GetCharacterAnimeAsyncTests()
 {
     _jikan = new Jikan();
 }
コード例 #24
0
 public MangaSearchTestClass()
 {
     _jikan = new Jikan();
 }
コード例 #25
0
 public GetPersonMangaAsyncTests()
 {
     _jikan = new Jikan();
 }
コード例 #26
0
 public CharacterExtendedTests()
 {
     _jikan = new Jikan();
 }
コード例 #27
0
 public MangaTestClass()
 {
     jikan = new Jikan(true);
 }
コード例 #28
0
 public GetUserClubsAsyncTests()
 {
     _jikan = new Jikan();
 }
コード例 #29
0
ファイル: MangaExtendedTests.cs プロジェクト: N0D4N/jikan.net
 public MangaExtendedTests()
 {
     _jikan = new Jikan();
 }
コード例 #30
0
 public GetMangaNewsAsyncTests()
 {
     _jikan = new Jikan();
 }