import { TranslationUnit } from './translation-unit' ; /**
 * Created by martin on 29.06.2017.
 */ export class AutoTranslateResult { public static Success ( tu ) { return new AutoTranslateResult ( tu , true , false , null ) ; } public static Failed ( tu , details ) { return new AutoTranslateResult ( tu , false , false , details ) ; } public static Ignored ( tu , details ) { return new AutoTranslateResult ( tu , true , true , details ) ; } private constructor ( private _transUnit , private _success , private _ignored , private _details ) { } public success ( ) { return this . _success ; } public failed ( ) { return ! this . _success ; } public ignored ( ) { return this . _ignored ; } public details ( ) { return this . _details ; } public translationUnit ( ) { return this . _transUnit ; } }