Beispiel #1
0
        //9.1.3	查询集团用户
        public string QueryCompanyUser(QChat_Query qchat)
        {
            QchatQEDService qqs = new QchatQEDService();

            qqs = getQchatQEDService(qchat.username, qchat.password, qchat.deviceID, qchat.urlIp);

            //查询参数
            QueryRequest queryRequest = new QueryRequest();

            queryRequest.mainParam = qchat.mainParam; //"xghcnc933731"; //为管理员名称
            queryRequest.pageSize  = qchat.pageSize;  //10; //查询条数,默认为10
            queryRequest.startPos  = qchat.startPos;  //0; //起始位置
            QedRequest qedr = new QedRequest();

            qedr.queryRequest = queryRequest;

            QedResponse         response        = qqs.queryCompanyUser(qedr);
            CompanyUserResponse companyResponse = response.companyUserResponse;
            StringBuilder       sb = new StringBuilder();

            if (companyResponse != null && companyResponse.userInfo != null)
            {
                sb.AppendLine("count:" + companyResponse.count.ToString());
                sb.AppendLine("Response:" + companyResponse.response.description.ToString());
                sb.AppendLine("reserve:" + companyResponse.response.reserve);
                sb.AppendLine("returnCode:" + companyResponse.response.returnCode);

                sb.AppendLine("groupInfo:" + companyResponse.userInfo.ToString());
                for (int i = 0; i < companyResponse.userInfo.Length; i++)
                {
                    sb.AppendLine("用户" + i);
                    sb.AppendLine("domain:" + companyResponse.userInfo[i].domain);
                    sb.AppendLine("callRestriction:" + companyResponse.userInfo[i].callRestriction);
                    sb.AppendLine("imsi:" + companyResponse.userInfo[i].imsi);
                    sb.AppendLine("level:" + companyResponse.userInfo[i].level);
                    sb.AppendLine("name:" + companyResponse.userInfo[i].name);
                    sb.AppendLine("number:" + companyResponse.userInfo[i].number);
                    sb.AppendLine("password:"******"status:" + companyResponse.userInfo[i].status);
                }
            }
            else
            {
                sb.AppendLine("返回信息为null");
            }
            Console.WriteLine(sb);

            //Console.ReadKey();
            return(sb.ToString());
        }
Beispiel #2
0
        //9.1.2	查询集团预定义组
        public string QueryCompanyGroup(QChat_Query qchat)
        {
            QchatQEDService qqs = new QchatQEDService();

            qqs = getQchatQEDService(qchat.username, qchat.password, qchat.deviceID, qchat.urlIp);

            //查询参数
            QueryRequest queryRequest = new QueryRequest();

            queryRequest.mainParam = qchat.mainParam; //"xghcnc933731"; //为管理员名称
            queryRequest.pageSize  = qchat.pageSize;  //10; //查询条数,默认为10
            queryRequest.startPos  = qchat.startPos;  //0; //起始位置
            QedRequest qedr = new QedRequest();

            qedr.queryRequest = queryRequest;

            QedResponse          response        = qqs.queryCompanyGroup(qedr);
            CompanyGroupResponse companyResponse = response.companyGroupResponse;
            StringBuilder        sb = new StringBuilder();

            if (companyResponse != null && companyResponse.groupInfo != null)
            {
                sb.AppendLine("count:" + companyResponse.count.ToString());
                sb.AppendLine("Response:" + companyResponse.response.description.ToString());
                sb.AppendLine("reserve:" + companyResponse.response.reserve);
                sb.AppendLine("returnCode:" + companyResponse.response.returnCode + "\n");

                sb.AppendLine("groupInfo: " + companyResponse.groupInfo.ToString());

                for (int i = 0; i < companyResponse.groupInfo.Length; i++)
                {
                    sb.AppendLine("结果" + i);
                    sb.AppendLine("code:" + companyResponse.groupInfo[i].code);
                    sb.AppendLine("domain:" + companyResponse.groupInfo[i].domain);
                    sb.AppendLine("memberCount:" + companyResponse.groupInfo[i].memberCount.ToString());
                    sb.AppendLine("name:" + companyResponse.groupInfo[i].name);
                    sb.AppendLine("policy:" + companyResponse.groupInfo[i].policy);
                    sb.AppendLine("title: " + companyResponse.groupInfo[i].title);
                    sb.AppendLine("type:" + companyResponse.groupInfo[i].type.ToString());
                }
            }
            else
            {
                sb.AppendLine("返回信息为null");
            }
            Console.WriteLine(sb);

            //Console.ReadKey();
            return(sb.ToString());
        }
Beispiel #3
0
        //9.3.2	查询用户归属群组信息
        public string QueryUserGroup(QChat_Query qchat)
        {
            QchatQEDService qqs = new QchatQEDService();

            qqs = getQchatQEDService(qchat.username, qchat.password, qchat.deviceID, qchat.urlIp);


            //查询用户归属群组信息
            QueryRequest queryrequest = new QueryRequest();

            queryrequest.mainParam = qchat.mainParam; //"15314604129";
            queryrequest.startPos  = qchat.startPos;  //0;
            queryrequest.pageSize  = qchat.pageSize;  //10;

            QedRequest qedr = new QedRequest();

            qedr.queryRequest = queryrequest;

            UserGroupResponse userGroupresponse = qqs.queryUserGroup(qedr).UGroupResponse;
            StringBuilder     sb = new StringBuilder();

            if (userGroupresponse != null && userGroupresponse.userGroupInfo != null)
            {
                sb.AppendLine("Count:" + userGroupresponse.count);
                for (int i = 0; i < userGroupresponse.count; i++)
                {
                    sb.AppendLine("companyID:" + userGroupresponse.userGroupInfo[i].companyID);
                    sb.AppendLine("groupCode:" + userGroupresponse.userGroupInfo[i].groupCode);
                    sb.AppendLine("groupName:" + userGroupresponse.userGroupInfo[i].groupName);
                    sb.AppendLine("groupType:" + userGroupresponse.userGroupInfo[i].groupType.ToString());
                    sb.AppendLine("level:" + userGroupresponse.userGroupInfo[i].level.ToString());
                    sb.AppendLine("memberAliasName:" + userGroupresponse.userGroupInfo[i].memberAliasName);
                    sb.AppendLine("memberType:" + userGroupresponse.userGroupInfo[i].memberType.ToString());
                    sb.AppendLine("policy:" + userGroupresponse.userGroupInfo[i].policy.ToString());
                    sb.AppendLine("title:" + userGroupresponse.userGroupInfo[i].title);
                }
                sb.AppendLine("description:" + userGroupresponse.response.description);
                sb.AppendLine("reserve:" + userGroupresponse.response.reserve);
                sb.AppendLine("returnCode:" + userGroupresponse.response.returnCode);
            }
            else
            {
                sb.AppendLine("返回信息为null");
            }
            Console.WriteLine(sb);

            //Console.ReadKey();
            return(sb.ToString());
        }
Beispiel #4
0
        //9.2.5	查询群组成员
        public string queryGroupMember(QChat_Query qchat)
        {
            QchatQEDService qqs = new QchatQEDService();

            qqs = getQchatQEDService(qchat.username, qchat.password, qchat.deviceID, qchat.urlIp);

            //查询群组成员
            QueryRequest queryMemRequest = new QueryRequest();

            queryMemRequest.mainParam = qchat.mainParam; // "xghcnc933731"; //为管理员名称
            queryMemRequest.pageSize  = qchat.pageSize;  // 10; //查询条数,默认为10
            queryMemRequest.startPos  = qchat.startPos;  // 0; //起始位置
            QedRequest qedr_query = new QedRequest();

            qedr_query.queryRequest = queryMemRequest;

            QedResponse response = qqs.queryGroupMember(qedr_query);
            QueryGroupMemberResponse companyResponse = response.QGMemResponse;
            StringBuilder            sb = new StringBuilder();

            if (companyResponse != null && companyResponse.response != null)
            {
                sb.AppendLine("count:" + companyResponse.count);
                sb.AppendLine("Response:" + companyResponse.response.description.ToString());
                sb.AppendLine("reserve:" + companyResponse.response.reserve);
                sb.AppendLine("returnCode:" + companyResponse.response.returnCode);
                //kzs?为什么为空
                if (companyResponse.gMemInfo != null)
                {
                    for (int i = 0; i < companyResponse.gMemInfo.Length; i++)
                    {
                        sb.AppendLine("成员" + (i + 1));
                        sb.AppendLine("number:" + companyResponse.gMemInfo[i].number);
                        sb.AppendLine("name:" + companyResponse.gMemInfo[i].name);
                        sb.AppendLine("level:" + companyResponse.gMemInfo[i].level);
                        sb.AppendLine("type:" + companyResponse.gMemInfo[i].type);
                    }
                }
            }
            else
            {
                sb.AppendLine("返回信息为null");
            }
            Console.WriteLine(sb);

            //Console.ReadKey();
            return(sb.ToString());
        }
Beispiel #5
0
        //9.3.1	查询用户
        public string QueryUser(QChat_Query qchat)
        {
            QchatQEDService qqs = new QchatQEDService();

            qqs = getQchatQEDService(qchat.username, qchat.password, qchat.deviceID, qchat.urlIp);

            //查询用户
            QueryRequest queryrequest = new QueryRequest();

            queryrequest.mainParam = qchat.mainParam; //"15314604129";
            queryrequest.startPos  = qchat.startPos;  //0;
            queryrequest.pageSize  = qchat.pageSize;  //10;

            QedRequest qedr = new QedRequest();

            qedr.queryRequest = queryrequest;

            UserResponse userresponse = qqs.queryUser(qedr).userResponse;

            StringBuilder sb = new StringBuilder();

            if (userresponse != null && userresponse.userInfo != null)
            {
                sb.AppendLine("callRestriction:" + userresponse.userInfo.callRestriction);
                sb.AppendLine("domain:" + userresponse.userInfo.domain);
                sb.AppendLine("imsi:" + userresponse.userInfo.imsi);
                sb.AppendLine("level:" + userresponse.userInfo.level);
                sb.AppendLine("name:" + userresponse.userInfo.name);
                sb.AppendLine("number:" + userresponse.userInfo.number);
                sb.AppendLine("password:"******"status:" + userresponse.userInfo.status);

                sb.AppendLine("description:" + userresponse.response.description);
                sb.AppendLine("reserve:" + userresponse.response.reserve);
                sb.AppendLine("returnCode:" + userresponse.response.returnCode);
            }
            else
            {
                sb.AppendLine("返回信息为null");
            }
            Console.WriteLine(sb);

            //Console.ReadKey();
            return(sb.ToString());
        }
Beispiel #6
0
        //9.1.1	查询集团
        public string QueryCompany(QChat_Query qchat)
        {
            QchatQEDService qqs = new QchatQEDService();

            qqs = getQchatQEDService(qchat.username, qchat.password, qchat.deviceID, qchat.urlIp);

            //查询参数
            QueryRequest queryRequest = new QueryRequest();

            queryRequest.mainParam = qchat.mainParam; //"xghcnc933731"; //为管理员名称
            queryRequest.pageSize  = qchat.pageSize;  //10; //查询条数,默认为10
            queryRequest.startPos  = qchat.startPos;  //0; //起始位置
            QedRequest qedr = new QedRequest();

            qedr.queryRequest = queryRequest;

            QedResponse     response        = qqs.queryCompany(qedr);
            CompanyResponse companyResponse = response.companyResponse;
            StringBuilder   sb = new StringBuilder();

            if (companyResponse != null && companyResponse.companyInfo != null)
            {
                sb.AppendLine("adminCount:" + companyResponse.companyInfo.adminCount.ToString());
                sb.AppendLine("companyName:" + companyResponse.companyInfo.companyName.ToString());
                sb.AppendLine("groupCount:" + companyResponse.companyInfo.groupCount.ToString());
                sb.AppendLine("userCount:" + companyResponse.companyInfo.userCount.ToString());
                sb.AppendLine("Response:" + companyResponse.response.description.ToString());
                sb.AppendLine("reserve:" + companyResponse.response.reserve);
                sb.AppendLine("returnCode:" + companyResponse.response.returnCode);
            }
            else
            {
                sb.AppendLine("返回信息为null");
            }
            Console.WriteLine(sb);
            //Console.ReadKey();

            return(sb.ToString());
        }
Beispiel #7
0
        //9.1.1	查询集团
        public string QueryCompany(QChat_Query qchat)
        {
            QchatQEDService qqs = new QchatQEDService();
            qqs = getQchatQEDService(qchat.username, qchat.password, qchat.deviceID, qchat.urlIp);

            //查询参数
            QueryRequest queryRequest = new QueryRequest();
            queryRequest.mainParam = qchat.mainParam;//"xghcnc933731"; //为管理员名称
            queryRequest.pageSize = qchat.pageSize;//10; //查询条数,默认为10
            queryRequest.startPos = qchat.startPos;//0; //起始位置
            QedRequest qedr = new QedRequest();
            qedr.queryRequest = queryRequest;

            QedResponse response = qqs.queryCompany(qedr);
            CompanyResponse companyResponse = response.companyResponse;
            StringBuilder sb = new StringBuilder();

            if (companyResponse != null && companyResponse.companyInfo != null)
            {
                sb.AppendLine("adminCount:" + companyResponse.companyInfo.adminCount.ToString());
                sb.AppendLine("companyName:" + companyResponse.companyInfo.companyName.ToString());
                sb.AppendLine("groupCount:" + companyResponse.companyInfo.groupCount.ToString());
                sb.AppendLine("userCount:" + companyResponse.companyInfo.userCount.ToString());
                sb.AppendLine("Response:" + companyResponse.response.description.ToString());
                sb.AppendLine("reserve:" + companyResponse.response.reserve);
                sb.AppendLine("returnCode:" + companyResponse.response.returnCode);
            }
            else
            {
                sb.AppendLine("返回信息为null");
            }
            Console.WriteLine(sb);
            //Console.ReadKey();

            return sb.ToString();
        }
Beispiel #8
0
            //9.3.2	查询用户归属群组信息
        public string QueryUserGroup(QChat_Query qchat)
        {
            QchatQEDService qqs = new QchatQEDService();
            qqs = getQchatQEDService(qchat.username, qchat.password, qchat.deviceID, qchat.urlIp);

            
            //查询用户归属群组信息
            QueryRequest queryrequest = new QueryRequest();
            queryrequest.mainParam = qchat.mainParam;//"15314604129";
            queryrequest.startPos = qchat.startPos;//0;
            queryrequest.pageSize = qchat.pageSize;//10;

            QedRequest qedr = new QedRequest();
            qedr.queryRequest = queryrequest;

            UserGroupResponse userGroupresponse = qqs.queryUserGroup(qedr).UGroupResponse;
            StringBuilder sb = new StringBuilder();

            if (userGroupresponse != null && userGroupresponse.userGroupInfo != null)
            {
                sb.AppendLine("Count:" + userGroupresponse.count);
                for (int i = 0; i < userGroupresponse.count; i++)
                {
                    sb.AppendLine("companyID:" + userGroupresponse.userGroupInfo[i].companyID);
                    sb.AppendLine("groupCode:" + userGroupresponse.userGroupInfo[i].groupCode);
                    sb.AppendLine("groupName:" + userGroupresponse.userGroupInfo[i].groupName);
                    sb.AppendLine("groupType:" + userGroupresponse.userGroupInfo[i].groupType.ToString());
                    sb.AppendLine("level:" + userGroupresponse.userGroupInfo[i].level.ToString());
                    sb.AppendLine("memberAliasName:" + userGroupresponse.userGroupInfo[i].memberAliasName);
                    sb.AppendLine("memberType:" + userGroupresponse.userGroupInfo[i].memberType.ToString());
                    sb.AppendLine("policy:" + userGroupresponse.userGroupInfo[i].policy.ToString());
                    sb.AppendLine("title:" + userGroupresponse.userGroupInfo[i].title);
                }
                sb.AppendLine("description:" + userGroupresponse.response.description);
                sb.AppendLine("reserve:" + userGroupresponse.response.reserve);
                sb.AppendLine("returnCode:" + userGroupresponse.response.returnCode);
            }
            else
            {
                sb.AppendLine("返回信息为null");
            }
            Console.WriteLine(sb);

            //Console.ReadKey();
            return sb.ToString();
        }
Beispiel #9
0
            //9.3.1	查询用户
        public string QueryUser(QChat_Query qchat){
            QchatQEDService qqs = new QchatQEDService();
            qqs = getQchatQEDService(qchat.username, qchat.password, qchat.deviceID, qchat.urlIp);

            //查询用户
            QueryRequest queryrequest = new QueryRequest();
            queryrequest.mainParam = qchat.mainParam;//"15314604129";
            queryrequest.startPos = qchat.startPos;//0;
            queryrequest.pageSize = qchat.pageSize;//10;

            QedRequest qedr = new QedRequest();
            qedr.queryRequest = queryrequest;

            UserResponse userresponse = qqs.queryUser(qedr).userResponse;

            StringBuilder sb = new StringBuilder();
            if (userresponse != null && userresponse.userInfo != null)
            {
                sb.AppendLine("callRestriction:" + userresponse.userInfo.callRestriction);
                sb.AppendLine("domain:" + userresponse.userInfo.domain);
                sb.AppendLine("imsi:" + userresponse.userInfo.imsi);
                sb.AppendLine("level:" + userresponse.userInfo.level);
                sb.AppendLine("name:" + userresponse.userInfo.name);
                sb.AppendLine("number:" + userresponse.userInfo.number);
                sb.AppendLine("password:"******"status:" + userresponse.userInfo.status);

                sb.AppendLine("description:" + userresponse.response.description);
                sb.AppendLine("reserve:" + userresponse.response.reserve);
                sb.AppendLine("returnCode:" + userresponse.response.returnCode);
            }
            else
            {
                sb.AppendLine("返回信息为null");
            }
            Console.WriteLine(sb);

            //Console.ReadKey();
            return sb.ToString();
        }
Beispiel #10
0
            //9.2.5	查询群组成员
        public string queryGroupMember(QChat_Query qchat)
        {
            QchatQEDService qqs = new QchatQEDService();
            qqs = getQchatQEDService(qchat.username, qchat.password, qchat.deviceID, qchat.urlIp);

            //查询群组成员
            QueryRequest queryMemRequest = new QueryRequest();
            queryMemRequest.mainParam = qchat.mainParam;// "xghcnc933731"; //为管理员名称
            queryMemRequest.pageSize = qchat.pageSize;// 10; //查询条数,默认为10
            queryMemRequest.startPos = qchat.startPos;// 0; //起始位置
            QedRequest qedr_query = new QedRequest();
            qedr_query.queryRequest = queryMemRequest;

            QedResponse response = qqs.queryGroupMember(qedr_query);
            QueryGroupMemberResponse companyResponse = response.QGMemResponse;
            StringBuilder sb = new StringBuilder();

            if (companyResponse != null && companyResponse.response != null)
            {
                sb.AppendLine("count:" + companyResponse.count);
                sb.AppendLine("Response:" + companyResponse.response.description.ToString());
                sb.AppendLine("reserve:" + companyResponse.response.reserve);
                sb.AppendLine("returnCode:" + companyResponse.response.returnCode);
                //kzs?为什么为空
                if (companyResponse.gMemInfo != null)
                {
                    for (int i = 0; i < companyResponse.gMemInfo.Length; i++)
                    {
                        sb.AppendLine("成员" + (i + 1));
                        sb.AppendLine("number:" + companyResponse.gMemInfo[i].number);
                        sb.AppendLine("name:" + companyResponse.gMemInfo[i].name);
                        sb.AppendLine("level:" + companyResponse.gMemInfo[i].level);
                        sb.AppendLine("type:" + companyResponse.gMemInfo[i].type);

                    }
                }
                
            }
            else
            {
                sb.AppendLine("返回信息为null");
            }
            Console.WriteLine(sb);

            //Console.ReadKey();
            return sb.ToString();
        }
Beispiel #11
0
            //9.1.3	查询集团用户
        public string QueryCompanyUser(QChat_Query qchat)
        {
            QchatQEDService qqs = new QchatQEDService();
            qqs = getQchatQEDService(qchat.username, qchat.password, qchat.deviceID, qchat.urlIp);

            //查询参数
            QueryRequest queryRequest = new QueryRequest();
            queryRequest.mainParam = qchat.mainParam;//"xghcnc933731"; //为管理员名称
            queryRequest.pageSize = qchat.pageSize;//10; //查询条数,默认为10
            queryRequest.startPos = qchat.startPos;//0; //起始位置
            QedRequest qedr = new QedRequest();
            qedr.queryRequest = queryRequest;

            QedResponse response = qqs.queryCompanyUser(qedr);
            CompanyUserResponse companyResponse = response.companyUserResponse;
            StringBuilder sb = new StringBuilder();

            if (companyResponse != null && companyResponse.userInfo != null)
            {
                sb.AppendLine("count:" + companyResponse.count.ToString());
                sb.AppendLine("Response:" + companyResponse.response.description.ToString());
                sb.AppendLine("reserve:" + companyResponse.response.reserve);
                sb.AppendLine("returnCode:" + companyResponse.response.returnCode);

                sb.AppendLine("groupInfo:" + companyResponse.userInfo.ToString());
                for (int i = 0; i < companyResponse.userInfo.Length; i++)
                {
                    sb.AppendLine("用户" + i);
                    sb.AppendLine("domain:" + companyResponse.userInfo[i].domain);
                    sb.AppendLine("callRestriction:" + companyResponse.userInfo[i].callRestriction);
                    sb.AppendLine("imsi:" + companyResponse.userInfo[i].imsi);
                    sb.AppendLine("level:" + companyResponse.userInfo[i].level);
                    sb.AppendLine("name:" + companyResponse.userInfo[i].name);
                    sb.AppendLine("number:" + companyResponse.userInfo[i].number);
                    sb.AppendLine("password:"******"status:" + companyResponse.userInfo[i].status);

                }
            }
            else
            {
                sb.AppendLine("返回信息为null");
            }
            Console.WriteLine(sb);

            //Console.ReadKey();
            return sb.ToString();
        }
Beispiel #12
0
        //9.1.2	查询集团预定义组
        public string QueryCompanyGroup(QChat_Query qchat)
        {
            QchatQEDService qqs = new QchatQEDService();
            qqs = getQchatQEDService(qchat.username, qchat.password, qchat.deviceID, qchat.urlIp);

            //查询参数
            QueryRequest queryRequest = new QueryRequest();
            queryRequest.mainParam = qchat.mainParam;//"xghcnc933731"; //为管理员名称
            queryRequest.pageSize = qchat.pageSize;//10; //查询条数,默认为10
            queryRequest.startPos = qchat.startPos;//0; //起始位置
            QedRequest qedr = new QedRequest();
            qedr.queryRequest = queryRequest;

            QedResponse response = qqs.queryCompanyGroup(qedr);
            CompanyGroupResponse companyResponse = response.companyGroupResponse;
            StringBuilder sb = new StringBuilder();

            if (companyResponse != null && companyResponse.groupInfo != null)
            {
                sb.AppendLine("count:" + companyResponse.count.ToString());
                sb.AppendLine("Response:" + companyResponse.response.description.ToString());
                sb.AppendLine("reserve:" + companyResponse.response.reserve);
                sb.AppendLine("returnCode:" + companyResponse.response.returnCode + "\n");

                sb.AppendLine("groupInfo: " + companyResponse.groupInfo.ToString());

                for (int i = 0; i < companyResponse.groupInfo.Length; i++)
                {
                    sb.AppendLine("结果" + i);
                    sb.AppendLine("code:" + companyResponse.groupInfo[i].code);
                    sb.AppendLine("domain:" + companyResponse.groupInfo[i].domain);
                    sb.AppendLine("memberCount:" + companyResponse.groupInfo[i].memberCount.ToString());
                    sb.AppendLine("name:" + companyResponse.groupInfo[i].name);
                    sb.AppendLine("policy:" + companyResponse.groupInfo[i].policy);
                    sb.AppendLine("title: " + companyResponse.groupInfo[i].title);
                    sb.AppendLine("type:" + companyResponse.groupInfo[i].type.ToString());
                }
            }
            else
            {
                sb.AppendLine("返回信息为null");
            }
            Console.WriteLine(sb);

            //Console.ReadKey();
            return sb.ToString();
        }