import * as tslib_1 from "tslib";
import { Injectable } from '@angular/core';
import { BehaviorSubject } from 'rxjs/BehaviorSubject';
let SubjectService = class SubjectService {
    constructor() {
        this.loginState = new BehaviorSubject(null);
        this.DataState = new BehaviorSubject(null);
        this.TabState = new BehaviorSubject(null);
    }
    sendLoginData(state) {
        this.loginState.next(state);
    }
    getLoginData() {
        return this.loginState.asObservable();
    }
    sendUserData(state) {
        this.DataState.next(state);
    }
    getUserData() {
        return this.DataState.asObservable();
    }
    setTabData(state) {
        return this.TabState.next(state);
    }
    getTabData() {
        return this.TabState.asObservable();
    }
};
SubjectService = tslib_1.__decorate([
    Injectable({
        providedIn: 'root'
    })
], SubjectService);
export { SubjectService };
//# sourceMappingURL=subject.service.js.map