2019-11-12 18:30:26 +01:00
|
|
|
import { Injectable } from '@angular/core';
|
2020-04-01 12:46:06 +02:00
|
|
|
import { MatDialog } from '@angular/material/dialog';
|
2019-11-12 18:30:26 +01:00
|
|
|
|
|
|
|
import { CollectionStringMapperService } from 'app/core/core-services/collection-string-mapper.service';
|
|
|
|
import { BasePollDialogService } from 'app/core/ui-services/base-poll-dialog.service';
|
|
|
|
import { AssignmentPollDialogComponent } from 'app/site/assignments/components/assignment-poll-dialog/assignment-poll-dialog.component';
|
2020-03-17 18:21:13 +01:00
|
|
|
import { AssignmentPollService } from './assignment-poll.service';
|
2019-11-12 18:30:26 +01:00
|
|
|
import { ViewAssignmentPoll } from '../models/view-assignment-poll';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Subclassed to provide the right `PollService` and `DialogComponent`
|
|
|
|
*/
|
|
|
|
@Injectable({
|
|
|
|
providedIn: 'root'
|
|
|
|
})
|
2020-03-17 18:21:13 +01:00
|
|
|
export class AssignmentPollDialogService extends BasePollDialogService<ViewAssignmentPoll, AssignmentPollService> {
|
2019-11-12 18:30:26 +01:00
|
|
|
protected dialogComponent = AssignmentPollDialogComponent;
|
|
|
|
|
2020-02-24 16:55:07 +01:00
|
|
|
public constructor(dialog: MatDialog, mapper: CollectionStringMapperService) {
|
|
|
|
super(dialog, mapper);
|
2019-11-12 18:30:26 +01:00
|
|
|
}
|
|
|
|
}
|