public void GetTowerCurrentMsg() { //var client = new SmartTowerIntegrationServiceClient(); //var task = client.GetTowerCurrentMessageAsync("G_001");//replace it with the tower id later SmartTowerDAL smartTowerDAL = new SmartTowerDAL(); var currentMsg = smartTowerDAL.GetTowerCurrentMessage("G_001"); if (currentMsg != null) { switch (currentMsg.MessageType) { case 0: //English Tower.CurrentVMSMessage = currentMsg.EnglishMessage; break; case 1: //Arabic Tower.CurrentVMSMessage = currentMsg.ArabicMessage; break; case 2: //Mix Tower.CurrentVMSMessage = currentMsg.MixedMessage; break; } } }
public TowerMessageDTO GetTowerCurrentMessage(string TowerId) { SmartTowerDAL smartTowerDAL = new SmartTowerDAL(); return(smartTowerDAL.GetTowerCurrentMessage(TowerId)); }