void InitialAndroid()  //推送安卓手机初始化。
        {
            CustomContent c = new CustomContent();

            c.MessageID   = MessageID;
            c.MessageText = MessageText;
            c.MessageType = "1";
            c.MessageTime = MessageTime.ToString("yyyy-MM-dd HH:mm:ss");
            c.Level       = "1";
            c.TergetType  = "ALARM";
            c.TergetID    = TergetID;

            messageAndroid m = new messageAndroid();

            m.title                    = title; //
            m.description              = MessageText;
            m.notification_builder_id  = 0;
            m.notification_basic_style = 1;
            m.custom_content           = c;

            content t = new content();

            t.channel_id  = channel_id;
            t.ApiKey      = this.ApiKey;
            t.SecretKey   = this.SecretKey;
            t.msg_type    = "1";
            t.device_type = "3"; // (Android = 3 ,Ios = 4)
            t.msg         = m.ToString();

            SendContent = t.ToString();
        }
        void InitialIos()  //推送苹果手机初始化。
        {
            aps aps = new BaiDuPush.aps();

            aps.alert            = title;
            aps.sound            = "default";
            aps.badge            = "0";
            aps.contentAvailable = 1;

            messageIos m = new messageIos();

            m.aps         = aps;
            m.MessageID   = MessageID;
            m.MessageText = MessageText;
            m.MessageType = "1";
            m.MessageTime = MessageTime.ToString("yyyy-MM-dd HH:mm:ss");
            m.Level       = "1";
            m.TergetType  = "ALARM";
            m.TergetID    = TergetID;

            content t = new content();

            t.channel_id  = channel_id;
            t.ApiKey      = this.ApiKey;
            t.SecretKey   = this.SecretKey;
            t.msg_type    = "1";
            t.device_type = "4"; // (Android = 3 ,Ios = 4)
            t.msg         = m.ToString();

            SendContent = t.ToString();
        }