华为云会议 MEETING-查询外部通讯录头像:参数描述

时间:2024-04-22 14:27:08

参数描述

表1

参数

类型

描述

account

char[]

登录华为云会议的账号信息。

thirdUserId

char[]

登录华为云会议的第三方用户Id。

sipNumber

char[]

账号对应的sip号码。

avatarPath

char*

查询通讯录返回的头像路径。

pathLen

int

最大路径长度。

示例代码

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
/**
* 查询外部通讯录头像
*/
void demoNotifyProc::OnQueryContactAvatar(const char* account, const char* thirdUserId, const char* sipNumber, char* avatarPath, int pathLen)
{
    Cdemo* app = (Cdemo*)AfxGetApp();
    if (!app || (strlen(account) == 0 && strlen(thirdUserId) == 0 && strlen(sipNumber) == 0))
    {
        //窗口已经关闭或数据为空
        return;
    }
 
    string sAccount = account;
    string sThirdUserId = thirdUserId;
    string sSipNumber = sipNumber;
 
    /* 根据用户层自己的逻辑 + account thirdUserId sipNumber 获取到头像图片路径信息并复制到avatarPath char数组内*/
    // 测试使用时,在D:\\picture\\路径下放置一张图片test.png
    strcpy_s(avatarPath, pathLen, "D:\\picture\\test.png");
}
support.huaweicloud.com/sdkreference-meeting/meeting_02_0004.html