Initial Commit ...
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
import { Observable } from 'rxjs';
|
||||
import { concatMap } from 'rxjs/operators';
|
||||
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
||||
import { XQueryDto, XQueryResultDto } from 'x-framework-identity-sdk';
|
||||
import { ToWebinarViewDto } from 'src/app/views/webinar/v-webinar.tools';
|
||||
import { WebinarsBaseProviderPage } from '../webinars-base/webinars-base.provider.page';
|
||||
|
||||
@Component({
|
||||
selector: 'webinars-explorer',
|
||||
styleUrls: ['./webinars-explorer.page.scss'],
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
templateUrl: '../webinars-base/webinars-base.provider.page.html',
|
||||
})
|
||||
export class WebinarsExplorerPage extends WebinarsBaseProviderPage {
|
||||
//
|
||||
//#region Props ...
|
||||
//#endregion
|
||||
|
||||
//
|
||||
//#region LifeCycles ...
|
||||
onInit(): void {
|
||||
super.onInit();
|
||||
|
||||
//
|
||||
this.configureAsExplorerPage();
|
||||
}
|
||||
//#endregion
|
||||
|
||||
//
|
||||
//#region Abstractions ...
|
||||
getModelTask(identifier: string): Observable<any> {
|
||||
//
|
||||
return this.sharedService.mabsutAPIService.webinars.webinarProviderService
|
||||
.get(identifier)
|
||||
.pipe(
|
||||
concatMap((m) =>
|
||||
this.getValue(ToWebinarViewDto(m, this.managerService.currentLocale))
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
queryModelTask(query: XQueryDto): Observable<XQueryResultDto<any>> {
|
||||
return this.sharedService.mabsutAPIService.webinars.webinarProviderService.query(
|
||||
query
|
||||
);
|
||||
}
|
||||
//#endregion
|
||||
}
|
||||
Reference in New Issue
Block a user