blob: 0fc41775631496cd93cf1cf4574e74206f544879 [file] [log] [blame]
import { Injectable } from '@angular/core';
import { BehaviorSubject, Subject } from 'rxjs';
@Injectable({
providedIn: 'root'
})
export class PlMessagingTypesUIService {
private _filter: BehaviorSubject<string> = new BehaviorSubject<string>("");
private _singleLineAdjustment: BehaviorSubject<number> = new BehaviorSubject<number>(0);
private _columnCount: BehaviorSubject<number> = new BehaviorSubject<number>(0);
private _typesUpdateRequired: Subject<boolean> = new Subject<boolean>();
private _branchId: BehaviorSubject<string> = new BehaviorSubject<string>("0");
constructor() { }
get filter() {
return this._filter
}
set filterString(filter: string) {
if (filter !== this._filter.getValue()) {
this._filter.next(filter);
}
}
get singleLineAdjustment() {
return this._singleLineAdjustment;
}
set singleLineAdjustmentNumber(value: number) {
if (value !== this._singleLineAdjustment.getValue()) {
this._singleLineAdjustment.next(value);
}
}
get columnCount() {
return this._columnCount;
}
set columnCountNumber(value: number) {
if (value !== this._columnCount.getValue()) {
this._columnCount.next(value);
}
}
get typeUpdateRequired() {
return this._typesUpdateRequired;
}
set updateTypes(value: boolean) {
this._typesUpdateRequired.next(value);
}
get BranchId() {
return this._branchId;
}
set BranchIdString(value: string) {
this._branchId.next(value);
}
}