com.esf.device.modem.channel.service
Class ModemReply

java.lang.Object
  extended bycom.esf.device.modem.channel.service.ModemReply

public class ModemReply
extends java.lang.Object

Defines modem reply class

Author:
ilya.binshtok

Constructor Summary
ModemReply(java.util.ArrayList reply)
          AT reply constructor
ModemReply(CnS cmd)
          CnS reply constructor
 
Method Summary
 java.util.ArrayList getAtReply()
          Reports AT reply
 java.lang.String getAtReplyLine(int ind)
          Returns specified line of AT reply
 CnS getCnsReply()
          Reports CnS reply
 int getType()
          Reports reply type.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModemReply

public ModemReply(java.util.ArrayList reply)
           throws java.lang.Exception
AT reply constructor

Parameters:
reply - - reply to AT command
Throws:
java.lang.Exception

ModemReply

public ModemReply(CnS cmd)
CnS reply constructor

Parameters:
cmd - - CnS reply
Method Detail

getType

public int getType()
Reports reply type. (e.g. AT or CnS)

Returns:
reply type

getAtReply

public java.util.ArrayList getAtReply()
Reports AT reply

Returns:
AT reply

getAtReplyLine

public java.lang.String getAtReplyLine(int ind)
Returns specified line of AT reply

Parameters:
ind - - line to return
Returns:
line of AT reply on success, null on failure

getCnsReply

public CnS getCnsReply()
Reports CnS reply

Returns:
CnS reply


Copyright © 2009 Eurotech Inc. All rights reserved.