Esempio n. 1
0
        public int RequestSendUrl(HsNetWork hsNet, int groupid, string strUserID, int nTotalCount, int nCurrentCount, int nSubDataType, string strUrlData)
        {
            if (strUrlData.Length < 1)
            {
                return(-1);
            }

            Dictionary <string, string> dic = new Dictionary <string, string>();

            dic["APPID"]        = "0x00000000";
            dic["CLIENTID"]     = strUserID;
            dic["TOTALCOUNT"]   = nTotalCount.ToString();
            dic["CURRENTCOUNT"] = nCurrentCount.ToString();
            dic["SUBDATATYPE"]  = nSubDataType.ToString();

            dic["SUBDATASIZE"] = strUrlData.Length.ToString();
            dic["SUBDATA"]     = strUrlData;


            CmdSendParser sendParser = new CmdSendParser();

            sendParser.SetSessionKey(hsNet.GetSeedKey());
            SGEventArgs args = sendParser.RequestSubDataExchange("SUBDATAEXCHANGE", dic);

            return(hsNet.SendMessage(args));
        }