Skip to content

Latest commit

 

History

History
85 lines (72 loc) · 1.93 KB

UserPublic.md

File metadata and controls

85 lines (72 loc) · 1.93 KB

UserPublic

Public User details

Properties

Name Type
id string
type string
product TutteoProduct
username string
printableName string
firstname string
lastname string
name string
picture string
badges Array<string>
organization string
organizationRole OrganizationRoles
classRole ClassRoles
htmlUrl string
bio string
registrationDate Date
likedScoresCount number
followersCount number
followingCount number
ownedPublicScoresCount number
allPublicScoresCount number
likesCount number
playsCount number
coverPicture string
profileTheme string
links UserCommunityProfileLinks

Example

import type { UserPublic } from 'flat-api'

// TODO: Update the object below with actual values
const example = {
  "id": null,
  "type": null,
  "product": null,
  "username": null,
  "printableName": null,
  "firstname": null,
  "lastname": null,
  "name": null,
  "picture": null,
  "badges": null,
  "organization": null,
  "organizationRole": null,
  "classRole": null,
  "htmlUrl": null,
  "bio": null,
  "registrationDate": null,
  "likedScoresCount": null,
  "followersCount": null,
  "followingCount": null,
  "ownedPublicScoresCount": null,
  "allPublicScoresCount": null,
  "likesCount": null,
  "playsCount": null,
  "coverPicture": null,
  "profileTheme": null,
  "links": null,
} satisfies UserPublic

console.log(example)

// Convert the instance to a JSON string
const exampleJSON: string = JSON.stringify(example)
console.log(exampleJSON)

// Parse the JSON string back to an object
const exampleParsed = JSON.parse(exampleJSON) as UserPublic
console.log(exampleParsed)

[Back to top] [Back to API list] [Back to Model list] [Back to README]