public void process(AGateway gateway, org.smslib.Message.MessageTypes msgType, InboundMessage msg) { if (msgType == org.smslib.Message.MessageTypes.INBOUND) Console.WriteLine(">>> New Inbound message detected from Gateway: " + gateway.getGatewayId()); else if (msgType == org.smslib.Message.MessageTypes.STATUSREPORT) Console.WriteLine(">>> New Inbound Status Report message detected from Gateway: " + gateway.getGatewayId()); Console.WriteLine(msg); try { // Uncomment following line if you wish to delete the message upon arrival. // gateway.deleteMessage(msg); } catch (Exception e) { Console.WriteLine("Oops!!! Something gone bad..."); Console.WriteLine(e.Message); Console.WriteLine(e.StackTrace); } }
public void process(AGateway gateway, org.smslib.AGateway.GatewayStatuses oldStatus, org.smslib.AGateway.GatewayStatuses newStatus) { Console.WriteLine(">>> Gateway Status change for " + gateway.getGatewayId() + ", OLD: " + oldStatus + " -> NEW: " + newStatus); }
public void process(AGateway gateway, String callerId) { Console.WriteLine(">>> New call detected from Gateway: " + gateway.getGatewayId() + " : " + callerId); }
public void process(AGateway gateway, org.smslib.AGateway.GatewayStatuses oldStatus, org.smslib.AGateway.GatewayStatuses newStatus) { Console.WriteLine(">>> Gateway Status change for " + gateway.getGatewayId() + ", OLD: " + oldStatus + " -> NEW: " + newStatus); }
public void process(AGateway gateway, org.smslib.Message.MessageTypes msgType, InboundMessage msg) { if (msgType == org.smslib.Message.MessageTypes.INBOUND) { Console.WriteLine(">>> New Inbound message detected from Gateway: " + gateway.getGatewayId()); } else if (msgType == org.smslib.Message.MessageTypes.STATUSREPORT) { Console.WriteLine(">>> New Inbound Status Report message detected from Gateway: " + gateway.getGatewayId()); } Console.WriteLine(msg); try { // Uncomment following line if you wish to delete the message upon arrival. // gateway.deleteMessage(msg); } catch (Exception e) { Console.WriteLine("Oops!!! Something gone bad..."); Console.WriteLine(e.Message); Console.WriteLine(e.StackTrace); } }
public void process(AGateway gateway, String callerId) { Console.WriteLine(">>> New call detected from Gateway: " + gateway.getGatewayId() + " : " + callerId); }