diff --git a/Models/MovingRule.ts b/Models/MovingRule.ts index c6a78e9..30fbd55 100644 --- a/Models/MovingRule.ts +++ b/Models/MovingRule.ts @@ -5,30 +5,15 @@ export class MovingRule { * TODO: Maybe it should be turned into a RegExp object * will try with string for now */ - private _regex: string; + public regex: string; /** * This field is used for defining the folder to which the files will be moved * It can use the previously defined groups to create folders with the same name */ - private _folder: string; + public folder: string; constructor(regex?: string, folder?: string) { - this._regex = regex || ''; - this._folder = folder || ''; - } - public get regex(): string { - return this._regex; - } - - public set regex(value: string) { - this._regex = value; - } - - public get folder(): string { - return this._folder; - } - - public set folder(value: string) { - this._folder = value; + this.regex = regex || ''; + this.folder = folder || ''; } } \ No newline at end of file