Class UserService

Hierarchy

Index

Constructors

constructor

Properties

appService

appService: AppService

customizationService

customizationService: CustomizationService

hostsService

hostsService: HostsService

sceneCollectionsService

sceneCollectionsService: SceneCollectionsService

serviceName

serviceName: string = this.constructor.name

userLogin

userLogin: Subject<IPlatformAuth> = new Subject<IPlatformAuth>()

Static defaultState

defaultState: object

Type declaration

Static hasInstance

hasInstance: boolean = false

Static isSingleton

isSingleton: boolean = true

Static serviceAfterInit

serviceAfterInit: Subject<Service> = new Subject<Service>()

lifecycle hook

Accessors

apiToken

  • get apiToken(): string

channelId

  • get channelId(): string

platform

  • get platform(): object
  • Returns object

    • Optional channelId?: string
    • id: string
    • token: string
    • type: TPlatform
    • username: string

platformId

  • get platformId(): string

state

store

  • get store(): Store<any>

username

  • get username(): string

widgetToken

  • get widgetToken(): string

Static initialState

  • get initialState(): any

Static instance

  • get instance(): any

Static localStorageKey

  • get localStorageKey(): string

Methods

LOGIN

LOGOUT

  • LOGOUT(): void

Protected afterInit

  • afterInit(): void
  • calls only once per application life all observers are ready to listen service's events

    Returns void

dashboardUrl

  • dashboardUrl(subPage: string): string
  • Parameters

    • subPage: string

    Returns string

getDonationSettings

  • getDonationSettings(): Promise<any>

getLocalUserId

  • getLocalUserId(): string
  • This is a uuid that persists across the application lifetime and uniquely identifies this particular installation of slobs, even when the user is not logged in.

    Returns string

init

  • init(): void

isLoggedIn

  • isLoggedIn(): boolean

logOut

  • logOut(): Promise<void>

mounted

  • mounted(): void

overlaysUrl

  • overlaysUrl(): string

recentEventsUrl

  • recentEventsUrl(): string

setRavenContext

  • setRavenContext(): void
  • Registers the current user information with Raven so we can view more detailed information in sentry.

    Returns void

startAuth

  • startAuth(platform: TPlatform, onWindowShow: Function, onAuthStart: Function, onAuthFinish: Function): void
  • Starts the authentication process. Multiple callbacks can be passed for various events.

    Parameters

    • platform: TPlatform
    • onWindowShow: Function
    • onAuthStart: Function
    • onAuthFinish: Function

    Returns void

updatePlatformChannelId

  • updatePlatformChannelId(id: string): void
  • Parameters

    • id: string

    Returns void

updatePlatformToken

  • updatePlatformToken(token: string): void
  • Parameters

    • token: string

    Returns void

validateLogin

  • validateLogin(): void

Static createInstance

  • createInstance(ServiceClass: any): any

Static getResourceId

  • getResourceId(resource: any): string

Static getStore

  • getStore(): Store<any>

Static setupInitFunction

  • setupInitFunction(fn: function): void

Static setupProxy

  • setupProxy(fn: function): void

Static setupVuexStore

  • setupVuexStore(store: Store<any>): void