SA World SDK Documentation
  • 🛠 ENVIRONMENT SETUP
    • Overview
    • Getting Started
    • Sign Up for SAW SDK
    • Integration Steps
      • Step 1 - Install packages
      • Step 2 - Request credentials
      • Step 3 - Environments
      • Summary
    • SAW Sample Package
  • 🖥 SDK Integration Guides
    • Getting Started
    • Initialization
    • Authentication
    • Type Definition
    • User Data
      • getUser()
      • Account Data
        • getAccount()
        • getSub()
        • getEmail()
        • getName()
        • getUsername()
        • getGivenName()
        • getFamilyName()
      • Active Citizen Data
        • getCitizen()
        • getCitizenId()
        • getCitizenName()
        • getCitizenCode()
        • getCitizenWallet()
        • getCitizenLevel()
        • getCitizenAvatar()
      • Balance Data
        • getAP()
      • Saved Game Data
        • setGameData(...args)
        • getGameData()
      • Quest Data
        • getProcess()
        • claim(...args)
      • Friend Data
        • getFriendList()
        • sendFriendInvitation(...args)
        • responseFriendInvitation(...args)
        • getFriendInvitationList()
        • inviteGame(...args)
    • Game Play
      • Match Data
        • startMatch()
        • completeMatch(..args)
        • getMatchHistoryById(...args)
        • getAllMatchHistory(...args)
    • Quest
      • getList()
    • Achievement
      • getList()
  • 📌 Links
    • Report an Issue
    • Telegram Community Channel
    • Twitter
    • Discord
    • Facebook
Powered by GitBook
On this page
  1. 🖥 SDK Integration Guides

Type Definition

PreviousAuthenticationNextUser Data

Last updated 1 year ago

Interface
Type
Describe

IUser

IAccount

IActiveCitizen

IUserGameData

 account: IAccount;
 activeCitizen: IActiveCitizen;
 roles: string[];
 sub: string;
 name: string;
 username: string;
 givenName: string;
 familyName: string;
 email: string;
 emailVerified: boolean;
 saId: string;
 citizenCode: string;
 userId: string;
 name: string;
 wallet: string;
 level: number;
 status: number;
 createdAt: number;
 updatedAt: number;
 listTopicName: string[];
 score: number;
 isBlocked: number;
 avatarUrl: string;
 refLevel: number;
 gameId: string;
 userId: string;
 data: string;
 compressed: boolean;