Home Reference Source
import ProfileInfo from 'magister.js/src/profileInfo.js'
public class | source

ProfileInfo

Extends:

MagisterThing → ProfileInfo

Member Summary

Public Members
public
public
public
public
public
public
public
public
public
public
public
public

Method Summary

Public Methods
public
public

getFullName(useBirthname: boolean): string

public

getProfilePicture(width: number, height: number, crop: boolean): Promise<Stream>

Opens a stream to the profile picture of the current user with the given options.

public
public

Inherited Summary

From class MagisterThing
public

Public Members

public birthDate: Date source

public birthNamePrefix: String source

public birthSurname: String source

public firstName: String source

public id: String source

public initials: String source

public isParent: Boolean source

public lastName: String source

public namePrefix: String source

public officialFirstNames: String source

public officialSurname: String source

public useBirthname: Boolean source

Public Methods

public address(): Promise<Error|AddressInfo> source

public getFullName(useBirthname: boolean): string source

Params:

NameTypeAttributeDescription
useBirthname boolean
  • optional
  • default: this.useBirthname

Return:

string

public getProfilePicture(width: number, height: number, crop: boolean): Promise<Stream> source

Opens a stream to the profile picture of the current user with the given options.

Params:

NameTypeAttributeDescription
width number
  • optional
  • default: 640

The width of the picture.

height number
  • optional
  • default: 640

The height of the picture.

crop boolean
  • optional
  • default: false

Whether or not to crop the image.

Return:

Promise<Stream>

public async isVisibleForParent(): boolean source

Return:

boolean