Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Properties

user

user: User

用户信息,当手动调用登录或者 load 之后,此对象会自动实例化 通过调用 user.toJSON() 获取可以用于存储的对象,当下次实例化的时候,通过 client.load 恢复登录状态

Accessors

cookie

cookie:

isLogin

isLogin:

Methods

checkLogin

  • checkLogin(): Promise<void>

getPersonalDj

  • getPersonalDj(): Promise<any>

getPersonalFM

  • getPersonalFM(): Promise<any>

getPersonalNewSong

  • getPersonalNewSong(): Promise<any>

getPersonalPlaylist

  • getPersonalPlaylist(limit?: number, offset?: number): Promise<any>
  • 获取个人推荐歌单

    question

    找不到应用

    Parameters

    • Default value limit: number = 30
    • Default value offset: number = 0

    Returns Promise<any>

getPersonalPrivateContent

  • getPersonalPrivateContent(): Promise<any>

load

  • load(store: any): void
  • 从存储当中恢复用户

    Parameters

    • store: any

      用户的信息,用于恢复使用

    Returns void

request

  • request(host: string, path: string, method: string, payload?: any): Promise<any>
  • Parameters

    • host: string
    • path: string
    • method: string
    • Default value payload: any = {csrf_token: '',}

    Returns Promise<any>

requestWithSetCookie

  • requestWithSetCookie(host: string, path: string, method: string, payload?: any): Promise<any>

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc