import { BriefDiffCommand } from "./BriefDiffCommand" ; import { CpProxy } from "../../bll/moduleproxies/cp-proxy" ; import { BriefDiffRowsParser } from "./BriefDiffRowsParser" ; import { ITfsWorkFoldInfo } from "./ITfsWorkFoldInfo" ; import { TfvcCommitCommand } from "./TfvcCommitCommand" ; import { CheckInInfo } from "../../bll/entities/checkininfo" ; import { GetPrevResourceName } from "./GetPrevResourceName" ; export class TfvcCommandFactory { public constructor ( private readonly workspaceRootPath , private readonly tfPath , private readonly tfsInfo , private readonly cpProxy ) { } public getBriefDiffCommand ( ) { return new BriefDiffCommand ( this . workspaceRootPath , this . tfPath , this . cpProxy , this . getBriefDiffRowsParser ( ) ) ; } private getBriefDiffRowsParser ( ) { return new BriefDiffRowsParser ( this . tfPath , this . tfsInfo , this . getPrevResourceNameCommand ( ) ) ; } private getPrevResourceNameCommand ( ) { return new GetPrevResourceName ( this . tfPath , this . tfsInfo , this . cpProxy ) ; } public getTfvcCommitCommand ( checkInInfo ) { return new TfvcCommitCommand ( this . tfPath , this . cpProxy , checkInInfo ) ; } }