react-native-agora-chat
Version:
react native chat sdk
58 lines • 1.3 kB
TypeScript
/**
* The user information class, which contains the user attributes, such as the user ID and the nickname and avatar of a user.
*/
export declare class ChatUserInfo {
/**
* The user ID.
*/
userId: string;
/**
* The nickname of the user.
*/
nickName?: string;
/**
* The avatar URL of the user.
*/
avatarUrl?: string;
/**
* The email address of the user.
*/
mail?: string;
/**
* The mobile phone number of the user.
*/
phone?: string;
/**
* The gender of the user.
* - (Default) `0`: Unknown.
* - `1`: Male.
* - `2`: Female.
*/
gender?: number;
/**
* The signature of the user.
*/
sign?: string;
/**
* The birthday of the user.
*/
birth?: string;
/**
* The extension information of the user.
*
* You can specify either an empty string or the custom information encapsulated as the JSON string.
*/
ext?: string;
constructor(params: {
userId: string;
nickName?: string;
avatarUrl?: string;
mail?: string;
phone?: string;
gender?: number;
sign?: string;
birth?: string;
ext?: string;
});
}
//# sourceMappingURL=ChatUserInfo.d.ts.map