public objectList GetAllMessage() { db = new SMSDataClassesDataContext(); objectList l = new objectList(); var que = (from i in db.SMS_QueuedBoxes.Where(i => i.Status == false) select i).ToList(); if (que != null) { foreach (var q in que) { objectName c = new objectName(); c.Id = q.ID; c.Number = q.Number; c.Message = config.decrypt(q.Message); l.Add(c); } return l; } return null; }
internal static string bayanihan_reg(string input) { objList = new objectList(); string[] msg = input.Split('/'); string code = string.Empty; for (int i = 0; i < msg.Length; i++) { objectName objName = new objectName(); objName.Group = "BAYANIHAN"; objName.Province = "N/A"; objName.Section_a = 0; objName.Section_b = 0; switch (i) { case 0: objName.Lastname = msg[i]; break; case 1: objName.Firstname = msg[i]; break; case 2: objName.Town = msg[i]; break; case 3: objName.Sponsor = msg[i]; break; case 4: objName.Pin = msg[i]; code = msg[i]; break; } objList.Add(objName); } return code; }
internal static string bmc_reg(string input) { objList = new objectList(); string[] msg = input.Split('/'); string code = string.Empty; for (int i = 0; i < msg.Length; i++) { objectName objName = new objectName(); switch (i) { case 0: objName.Group = msg[i]; break; case 1: objName.Lastname = msg[i]; break; case 2: objName.Firstname = msg[i]; break; case 3: objName.Town = msg[i]; break; case 4: objName.Province = msg[i]; break; case 5: objName.Sponsor = msg[i]; break; case 6: objName.Section_a = Convert.ToInt32(msg[i]); break; case 7: objName.Section_b = Convert.ToInt32(msg[i]); break; case 8: objName.Pin = msg[i]; code = msg[i]; break; } objList.Add(objName); } return code; }