From 4abc23113cf171476d83ee3cd89350245fa27074 Mon Sep 17 00:00:00 2001 From: Al0cam Date: Thu, 14 Nov 2024 17:19:05 +0100 Subject: [PATCH] simplified MovingRule to only have public attributes --- Models/MovingRule.ts | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) 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