Esempio n. 1
0
        private void btnSend_Click(object sender, EventArgs e)
        {
            if (cbbNumber.Text == "" || rtbContent.Text == "")
            {
                return;
            }

            if (client != null)
            {
                var submit = new Submit()
                {
                    SPNumber         = cbbSPNumber.Text,
                    UserCount        = 1,
                    UserNumber       = cbbNumber.Text,
                    CorpId           = "0591",
                    ExpireTime       = "",
                    ScheduleTime     = "",
                    ServiceType      = "test",
                    FeeType          = FeeTypes.SendFree,
                    FeeValue         = "000000",
                    GivenValue       = "000000",
                    MessageCoding    = MessageCodes.GBK,
                    MessageType      = 0,
                    MorelatetoMTFlag = 0,
                    TP_pid           = 0,
                    TP_udhi          = 0,
                    Priority         = 1,
                    ReportFlag       = 0,
                    MessageContent   = rtbContent.Text,
                    ChargeNumber     = cbbSPNumber.Text,
                    AgentFlag        = 1,
                };

                client.Send(submit.GetBytes());
            }
        }