F: season page, addd more episodes view modes + various fixes
This commit is contained in:
1 parent
8f0e9f44a5
commit
59f5d70f09
13 files changed
+467
-147
No files matched your search
@@ -1,7 +1,7 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { HttpClient } from '@angular/common/http';
|
||||
import { EpisodeSeen } from '../../shared/models/episode-seen.model';
|
||||
import { EpisodeSeenDto } from '../../shared/models/dtos/episode-seen.dto';
|
||||
import { EpisodeSeenCreateDto } from '../../shared/models/dtos/episode-seen.dto';
|
||||
import { ConfigService } from './config.service';
|
||||
|
||||
@Injectable({
|
||||
@@ -33,25 +33,25 @@ export class EpisodeSeenService {
|
||||
}
|
||||
|
||||
getEpisodeSeenByEntryId(entryId: number) {
|
||||
return this.http.get<any[]>(
|
||||
return this.http.get<EpisodeSeen[]>(
|
||||
`${this.backend_apiUrl}/${this.apiAction}/by-entry/${entryId}`
|
||||
);
|
||||
}
|
||||
|
||||
getEpisodeSeenBySeasonId(entryId: number) {
|
||||
return this.http.get<any[]>(
|
||||
return this.http.get<EpisodeSeen[]>(
|
||||
`${this.backend_apiUrl}/${this.apiAction}/by-season/${entryId}`
|
||||
);
|
||||
}
|
||||
|
||||
// get episode-seen by episode Id
|
||||
// get episode-seen by Id
|
||||
getEpisodeSeenById(id: number) {
|
||||
return this.http.get<EpisodeSeen[]>(
|
||||
return this.http.get<EpisodeSeen>(
|
||||
`${this.backend_apiUrl}/${this.apiAction}/${id}`
|
||||
);
|
||||
}
|
||||
|
||||
updateEpisodeSeen(episodeSeen: EpisodeSeenDto) {
|
||||
updateEpisodeSeen(episodeSeen: EpisodeSeenCreateDto) {
|
||||
return this.http.put<any>(
|
||||
`${this.backend_apiUrl}/${this.apiAction}/${episodeSeen.id}`,
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user