Example #1
0
        public static void DACPlaying(DACPlayInfo playInfo, PPTVData.Entity.ChannelDetailInfo channelInfo, Version clientVersion)
        {
            string content = "Action=0&A=" + playInfo.castType.ToString() + "&B=1&C=6&D=" + GetUserId() + "&E=";

            content  += (clientVersion == null?"":clientVersion.ToString());
            content  += "&F=" + channelInfo.TypeID.ToString();
            content  += "&G=" + channelInfo.VID.ToString();
            content  += "&H=" + channelInfo.Title;
            content  += "&I=" + playInfo.playTime.ToString("0");
            content  += "&J=" + playInfo.mp4Name;
            content  += "&K=" + playInfo.programSource.ToString();
            content  += "&L=" + playInfo.prepareTime.ToString("0");
            content  += "&M=" + playInfo.bufferTime.ToString("0");
            content  += "&N=" + playInfo.allBufferCount.ToString();
            content  += "&O=" + playInfo.dragCount.ToString();
            content  += "&P=" + playInfo.dragBufferTime.ToString("0");
            content  += "&Q=" + playInfo.playBufferCount.ToString();
            content  += "&R=" + playInfo.connType.ToString();
            content  += "&S=" + playInfo.isPlaySucceeded.ToString();
            content  += "&T=";
            content  += "&U=";
            content  += "&V=" + playInfo.averageDownSpeed.ToString();
            content  += "&W=" + playInfo.stopReason.ToString();
            content  += "&Y1=0";
            content  += "&Y2=" + DeviceExtendedProperties.GetValue("DeviceName").ToString();
            content  += "&Y3=" + System.Environment.OSVersion.Version.ToString();
            _instance = new DACFactory();
            _instance.DACSend(content);
        }
Example #2
0
        public static void DACQuit(Version clientVersion, int appLifeTime)
        {
            DACFactory dacFactory = new DACFactory();
            string     content    = "Action=0&A=2&B=1&C=6&D=" + GetUserId() + "&E=";

            content += (clientVersion == null ? "" : clientVersion.ToString()) + "&F=";
            content += Utils.DeviceUniqueId;
            content += "&G=" + DeviceExtendedProperties.GetValue("DeviceName").ToString();
            content += "&H=" + System.Environment.OSVersion.Version.ToString();
            content += "&I=";
            content += "&J=" + appLifeTime + "&K=0";
            dacFactory.DACSend(content);
        }
Example #3
0
        public static void DACStartup(Version clientVersion)
        {
            DACFactory dacFactory = new DACFactory();
            string     content    = "Action=0&A=1&B=1&C=6&D=" + GetUserId();

            content += "&E=";
            content += clientVersion == null ? "" : clientVersion.ToString();
            content += "&F=" + Utils.DeviceUniqueId;
            content += "&G=" + DeviceExtendedProperties.GetValue("DeviceName").ToString();
            content += "&H=" + System.Environment.OSVersion.Version.ToString() + "&I=0";

            _instance = new DACFactory();
            _instance.DACSend(content);
        }
Example #4
0
 public static void DACStartup(Version clientVersion)
 {
     DACFactory dacFactory = new DACFactory();
     string content = "Action=0&A=1&B=1&C=6&D=" + GetUserId();
     content += "&E=";
     content += clientVersion == null ? "" : clientVersion.ToString();
     content += "&F=" + Utils.DeviceUniqueId;
     content += "&G=" + DeviceExtendedProperties.GetValue("DeviceName").ToString();
     content += "&H=" + System.Environment.OSVersion.Version.ToString() + "&I=0";
    
     _instance = new DACFactory();
     _instance.DACSend(content);
 }
Example #5
0
 public static void DACPlaying(DACPlayInfo playInfo, PPTVData.Entity.ChannelDetailInfo channelInfo,Version clientVersion)
 {
     string content = "Action=0&A=" + playInfo.castType.ToString() + "&B=1&C=6&D=" + GetUserId() + "&E=";
     content += (clientVersion==null?"":clientVersion.ToString());
     content += "&F=" + channelInfo.TypeID.ToString();
     content += "&G=" + channelInfo.VID.ToString();
     content += "&H=" + channelInfo.Title;
     content += "&I=" + playInfo.playTime.ToString("0");
     content += "&J=" + playInfo.mp4Name;
     content += "&K=" + playInfo.programSource.ToString();
     content += "&L=" + playInfo.prepareTime.ToString("0");
     content += "&M=" + playInfo.bufferTime.ToString("0");
     content += "&N=" + playInfo.allBufferCount.ToString();
     content += "&O=" + playInfo.dragCount.ToString();
     content += "&P=" + playInfo.dragBufferTime.ToString("0");
     content += "&Q=" + playInfo.playBufferCount.ToString();
     content += "&R=" + playInfo.connType.ToString();
     content += "&S=" + playInfo.isPlaySucceeded.ToString();
     content += "&T=";
     content += "&U=";
     content += "&V=" + playInfo.averageDownSpeed.ToString();
     content += "&W=" + playInfo.stopReason.ToString();
     content += "&Y1=0";
     content += "&Y2=" + DeviceExtendedProperties.GetValue("DeviceName").ToString();
     content += "&Y3=" + System.Environment.OSVersion.Version.ToString();
     _instance = new DACFactory();
     _instance.DACSend(content);
 }
Example #6
0
 public static void DACQuit(Version clientVersion,int appLifeTime)
 {
     DACFactory dacFactory = new DACFactory();
     string content = "Action=0&A=2&B=1&C=6&D=" + GetUserId() + "&E=";
     content += (clientVersion == null ? "" : clientVersion.ToString()) + "&F=";
     content += Utils.DeviceUniqueId;
     content += "&G=" + DeviceExtendedProperties.GetValue("DeviceName").ToString();
     content += "&H=" + System.Environment.OSVersion.Version.ToString();
     content += "&I=";
     content += "&J=" + appLifeTime + "&K=0";
     dacFactory.DACSend(content);
 }