// GET: sms public ActionResult Index() { var myxml = ""; senddata sd = new senddata(); settings set = new settings(); entries ent = new entries(); List <entries> le = new List <entries>(); set.live = true; set.return_credits = true; set.return_entries_failed_status = true; set.return_entries_success_status = true; set.default_date = "04/04/2017"; set.default_time = "10:45"; set.default_flash = false; set.default_type = "SMS"; sd._settings = set; ent.numto = "083449343"; ent.customerid = "123456"; ent.senderid = "BMC"; //ent.time = "10:45"; ent.data1 = "This is my test message to one"; //ent.flash = false; //ent.type = "SMS"; //ent.costcentre = ""; ent.validityperiod = "0"; le.Add(ent); ent = new entries(); ent.numto = "0836780"; ent.customerid = "123456"; ent.senderid = "terence123"; //ent.time = "10:45"; ent.data1 = "This is my test message to two"; //ent.flash = false; //ent.type = "SMS"; //ent.costcentre = ""; ent.validityperiod = "0"; le.Add(ent); sd._entries = le; var result = XmlSerialize(sd); using (apiCall = new MyMobileApiFix()) { string retresult = apiCall.Send_STR_STR("sky_test", "test123", result); var serializer = new XmlSerializer(typeof(api_result)); api_result theresult; using (TextReader reader = new StringReader(retresult)) { theresult = (api_result)serializer.Deserialize(reader); } var x = 1; } return(View()); }
public fCreateBill() { InitializeComponent(); table = new senddata(loadTalbeName); }