view models
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
import type { SessionDataDto } from '../dtos';
|
||||
import { SessionViewModel } from '../view-models';
|
||||
|
||||
/**
|
||||
* Session Presenter
|
||||
* Transforms session DTOs to ViewModels
|
||||
*/
|
||||
export class SessionPresenter {
|
||||
presentSession(dto: SessionDataDto | null): SessionViewModel | null {
|
||||
if (!dto) return null;
|
||||
return new SessionViewModel(dto);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user