Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SharedService

Shared service

Hierarchy

  • SharedService

Implements

Index

Constructors

  • Creates an instance of shared service.

    Returns SharedService

Properties

_installSubscriptions: Subject<any> = ...

설치 구독기

_loginSubscriptions: Subject<any> = ...

로그인 구독기

Methods

  • changeLoginData(siteCd?: string, pushUseYn?: boolean, pushKey?: string): boolean
  • Changes login data

    Parameters

    • Optional siteCd: string
    • Optional pushUseYn: boolean
    • Optional pushKey: string

    Returns boolean

  • checkLogin(): Promise<boolean>
  • Checks login

    Returns Promise<boolean>

  • checkLogout(): Promise<void>
  • Checks logout

    Returns Promise<void>

  • Gets app conf

    Returns AppConfVo

    app conf

  • Gets app menu

    Returns AppMenuVo[]

    app menu

  • getData(key: string): any
  • Gets data

    Parameters

    • key: string

    Returns any

    data

  • Gets login info

    Returns UserDetailsVo

    login info

  • initFirebaseMessageToken(): void
  • Inits firebase message token

    Returns void

  • isAsMember(): boolean
  • Determines whether as member is

    Returns boolean

    true if as member

  • isHasPageAuth(routerPath: string): boolean
  • Determines whether has page auth is

    Parameters

    • routerPath: string

    Returns boolean

    true if has page auth

  • isLogined(routerPath: string): Promise<string>
  • Determines whether logined is

    Parameters

    • routerPath: string

    Returns Promise<string>

    logined

  • isNotNull(input: any): boolean
  • Determines whether not null is

    Parameters

    • input: any

    Returns boolean

    true if not null

  • isNull(input: any): boolean
  • Determines whether null is

    Parameters

    • input: any

    Returns boolean

    true if null

  • prepareInstall(): void
  • Prepares install

    Returns void

  • refreshFirebaseMessageToken(): void
  • Refreshs firebase message token

    Returns void

  • Sets common service

    Parameters

    Returns void

  • setData(key: string, value: any): void
  • Sets data

    Parameters

    • key: string
    • value: any

    Returns void

  • Sets login info

    Parameters

    Returns void

  • setRouteLocation(routeLocation: RouteLocationNormalizedLoaded): void
  • Sets route location

    Parameters

    • routeLocation: RouteLocationNormalizedLoaded

    Returns void

  • subscribe(subType?: "login" | "install"): Observable<any>
  • Subscribes shared service

    Parameters

    • subType: "login" | "install" = 'login'

    Returns Observable<any>

    subscribe

  • unsetData(key: string): void
  • Unsets data

    Parameters

    • key: string

    Returns void

  • Gets instance

    Returns SharedService

    instance

Generated using TypeDoc