# Code coverage report for src/lib/services/token/token.service.ts

# All files / src/lib/services/token token.service.ts

78.26% Statements 18/23
45.45% Branches 10/22
42.85% Functions 3/7
76.47% Lines 13/17

Press n or j to go to the next uncovered block, b, p or k for the previous block.

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    351x
    1x
    1x
    1x
    1x

    1x

    2x
    2x
    2x
    2x
    2x

    1x

    1x

     import { Injectable } from '@angular/core';
    import { ILogger } from '../../models/logger.model';
    impoIrt { LoggerService } from '../logger/logger.service';

    @Injectable({
    	providedIn: 'root'
    })
    export class TokenService {
    	private webcamToken = '';
    	private screenToken = '';
    	private sessionId = '';
    	private log: ILogger;

    	constructor(private loggerSrv: LoggerService) {
    		this.log = this.loggerSrv.get('TokenService');
    	}

    	setWebcamToken(token: string){
    		this.webcamToken = token;
    	}

    	setScreenToken(token: string){
    		this.screenToken = token;
    	}

    	getWebcamToken(): string {
    		return this.webcamToken;
    	}

    	getScreenToken(): string {
    		return this.screenToken;
    	}
    }