FUserInfo
用户的信息。
C++
USTRUCT(BlueprintType)
struct FUserInfo
{
GENERATED_BODY()
public:
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|UserInfo")
int64 uid = 0;
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|UserInfo")
FString userAccount = "";
FUserInfo(){}
FUserInfo(const agora::rtc::UserInfo & AgoraData){
uid = AgoraData.uid;
userAccount = UTF8_TO_TCHAR(AgoraData.userAccount);
}
agora::rtc::UserInfo CreateAgoraData() const {
agora::rtc::UserInfo AgoraData;
AgoraData.uid = uid;
SET_UABT_FSTRING_TO_CHAR_ARRAY(AgoraData.userAccount,this->userAccount,agora::rtc::MAX_USER_ACCOUNT_LENGTH)
return AgoraData;
}
void FreeAgoraData(agora::rtc::UserInfo & AgoraData) const {
}
};
uid
用户 ID。
userAccount
用户 Account。