UNPKG

genshin-manager

Version:

<div align="center"> <p> <a href="https://www.npmjs.com/package/genshin-manager"><img src="https://img.shields.io/npm/v/genshin-manager.svg?maxAge=3600" alt="npm version" /></a> <a href="https://www.npmjs.com/package/genshin-manager"><img src="https:

56 lines (55 loc) 1.54 kB
import { ImageAssets } from '../models/assets/ImageAssets'; import { ProfilePictureType } from '../types'; /** * Class of character's profile picture */ export declare class ProfilePicture { /** * Profile picture ID */ readonly id: number; /** * Profile picture type */ readonly type: ProfilePictureType; /** * Avatar ID * @description Exists only if type is `PROFILE_PICTURE_UNLOCK_BY_AVATAR` */ readonly characterId?: number; /** * Costume ID * @description Exists only if type is `PROFILE_PICTURE_UNLOCK_BY_COSTUME` */ readonly costumeId?: number; /** * Material ID * @description Exists only if type is `PROFILE_PICTURE_UNLOCK_BY_ITEM` */ readonly materialId?: number; /** * Quest ID * @description Exists only if type is `PROFILE_PICTURE_UNLOCK_BY_PARENT_QUEST` */ readonly questId?: number; /** * Profile picture icon */ readonly icon: ImageAssets; /** * Create a ProfilePicture * @param profilePictureId Profile picture ID */ constructor(profilePictureId: number); /** * Get all profile picture IDs * @returns Profile picture IDs */ static get allProfilePictureIds(): number[]; /** * Find profile picture ID by info ID * @param unlockParam Costume ID or Character ID or Material ID or Quest ID * @returns Profile picture ID */ static findProfilePictureIdByUnlockParam(unlockParam: number): number | undefined; }