# Class UserInfo

用户信息

#### Version

1.0.0

- Defined in message/content/MessageContentInfo.ts:5

##### Index

### Constructors

constructor

### Properties

userId
name
portraitUri
userType?
alias?
extra?

### Accessors

portraitUrl

## Constructors

### constructor

- new UserInfo(userId: string, name: string, portrait: string): UserInfo

  #### Parameters

  - userId: string
  - name: string
  - portrait: string

  #### Returns UserInfo

  - Defined in message/content/MessageContentInfo.ts:33

## Properties

### userId

userId: string = ''

用户 ID

- Defined in message/content/MessageContentInfo.ts:9

### name

name: string = ''

用户名

- Defined in message/content/MessageContentInfo.ts:13

### portraitUri

portraitUri: string = ''

头像地址

#### Since

1.0.2

- Defined in message/content/MessageContentInfo.ts:18

### `Optional` userType

userType?: UserType

用户类型

#### Version

1.7.1

- Defined in message/content/MessageContentInfo.ts:23

### `Optional` alias

alias?: string

用户备注

- Defined in message/content/MessageContentInfo.ts:27

### `Optional` extra

extra?: string

用户信息附加字段

- Defined in message/content/MessageContentInfo.ts:31

## Accessors

### portraitUrl

- get portraitUrl(): string

  获取头像，已废弃，使用 portraitUri

  #### Returns string

  头像地址

  #### Deprecated

  since 1.0.2

  - Defined in message/content/MessageContentInfo.ts:53
- set portraitUrl(value: string): void

  设置头像，已废弃，使用 portraitUri

  #### Parameters

  - value: string

    头像地址

  #### Returns void

  #### Deprecated

  since 1.0.2

  - Defined in message/content/MessageContentInfo.ts:44