13 lines
343 B
TypeScript
13 lines
343 B
TypeScript
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);
|
|
}
|
|
} |