사무실, 회사, IM 등 클라이언트 연락처 정보가있는 개체는 누구입니까? Lync SDK 2013? 사용자 (클라이언트)의 위치/주소 정보를 알고 싶습니다. 아래로lync sdk에서 클라이언트의 연락처 세부 정보를 얻는 방법 C#
2
A
답변
0
에서 Kannan의 답변 외에도 연락처에서 전화 번호를받는 것이 다르기 때문에 더 많은 작업이 필요합니다. 방법은 다음과 같습니다.
LyncClient lyncClient = LyncClient.GetClient();
Contact contact = lyncClient.ContactManager.GetContactByUri("sip:[email protected]");
List<object> endPoints = new List<object>();
var telephoneNumber = (List<object>)contact.GetContactInformation(ContactInformationType.ContactEndpoints);
endPoints = telephoneNumber.Where<object>(N => ((ContactEndpoint)N).Type == ContactEndpointType.HomePhone || ((ContactEndpoint)N).Type == ContactEndpointType.MobilePhone || ((ContactEndpoint)N).Type == ContactEndpointType.OtherPhone || ((ContactEndpoint)N).Type == ContactEndpointType.WorkPhone).ToList<object>();
foreach (var endPoint in endPoints)
{
//((ContactEndpoint)endPoint).DisplayName.ToString(); //This is the phone number in string format
}
2
는 사용자의 위치/사무실 정보는 연락처 개체에서 얻을 수 있습니다 :
LyncClient lyncClient = LyncClient.GetClient();
Contact contact = lyncClient.ContactManager.GetContactByUri("sip:[email protected]");
String officeLocation = contact.GetContactInformation(ContactInformationType.Office).ToString();
더 많은 정보 연락 정보 유형을 사용하여 얻을 수 있습니다 개인 주, 회사, 위치, 부서 등