Exemplo n.º 1
0
 public Wybecom.TalkPortal.Cisco.ExtensionMobility.QueryResponse.responseType getPhones(string[] users)
 {
     Wybecom.TalkPortal.Cisco.ExtensionMobility.Query.queryType qt = new Wybecom.TalkPortal.Cisco.ExtensionMobility.Query.queryType();
     qt.appInfo = new Wybecom.TalkPortal.Cisco.ExtensionMobility.Query.appInfoType();
     qt.appInfo.appCertificate = new Wybecom.TalkPortal.Cisco.ExtensionMobility.Query.appCertificateType();
     qt.appInfo.appID = new Wybecom.TalkPortal.Cisco.ExtensionMobility.Query.appIDType();
     qt.appInfo.appCertificate.Value = empassword;
     qt.appInfo.appID.Value = emuser;
     qt.Item = new Wybecom.TalkPortal.Cisco.ExtensionMobility.Query.userDevicesQueryType();
     List<Wybecom.TalkPortal.Cisco.ExtensionMobility.Query.userIDType> usersid = new List<Wybecom.TalkPortal.Cisco.ExtensionMobility.Query.userIDType>();
     foreach (string s in users)
     {
         Wybecom.TalkPortal.Cisco.ExtensionMobility.Query.userIDType u = new Wybecom.TalkPortal.Cisco.ExtensionMobility.Query.userIDType();
         u.Value = s;
         usersid.Add(u);
     }
     ((Wybecom.TalkPortal.Cisco.ExtensionMobility.Query.userDevicesQueryType)qt.Item).userID = usersid.ToArray();
     return Send(qt);
 }
Exemplo n.º 2
0
        public Wybecom.TalkPortal.Cisco.ExtensionMobility.QueryResponse.responseType getPhones(string[] users)
        {
            Wybecom.TalkPortal.Cisco.ExtensionMobility.Query.queryType qt = new Wybecom.TalkPortal.Cisco.ExtensionMobility.Query.queryType();
            qt.appInfo = new Wybecom.TalkPortal.Cisco.ExtensionMobility.Query.appInfoType();
            qt.appInfo.appCertificate       = new Wybecom.TalkPortal.Cisco.ExtensionMobility.Query.appCertificateType();
            qt.appInfo.appID                = new Wybecom.TalkPortal.Cisco.ExtensionMobility.Query.appIDType();
            qt.appInfo.appCertificate.Value = empassword;
            qt.appInfo.appID.Value          = emuser;
            qt.Item = new Wybecom.TalkPortal.Cisco.ExtensionMobility.Query.userDevicesQueryType();
            List <Wybecom.TalkPortal.Cisco.ExtensionMobility.Query.userIDType> usersid = new List <Wybecom.TalkPortal.Cisco.ExtensionMobility.Query.userIDType>();

            foreach (string s in users)
            {
                Wybecom.TalkPortal.Cisco.ExtensionMobility.Query.userIDType u = new Wybecom.TalkPortal.Cisco.ExtensionMobility.Query.userIDType();
                u.Value = s;
                usersid.Add(u);
            }
            ((Wybecom.TalkPortal.Cisco.ExtensionMobility.Query.userDevicesQueryType)qt.Item).userID = usersid.ToArray();
            return(Send(qt));
        }