2024-06-18 00:24:45 +03:00
|
|
|
import { PitViewModel } from "../viewmodel/PitViewModel";
|
2024-03-27 21:48:48 +03:00
|
|
|
|
|
|
|
|
export class PitViewModelFactory {
|
|
|
|
|
public static create(params: {
|
|
|
|
|
id: string;
|
|
|
|
|
stoneCount: number;
|
|
|
|
|
stoneColor: string;
|
|
|
|
|
pitColor: string;
|
|
|
|
|
}): PitViewModel {
|
|
|
|
|
const { id, stoneCount, stoneColor, pitColor } = params;
|
|
|
|
|
return new PitViewModel(id, stoneCount, stoneColor, pitColor);
|
|
|
|
|
}
|
|
|
|
|
}
|