public DataCoding newInstance(byte dataCoding) { boolean compressed = isCompressed(dataCoding); boolean containMessageClass = DataCodings.containsMessageClass(dataCoding); MessageClass messageClass = null; if (containMessageClass) { // ignore Message Class if the PDU has tell us no Message Class messageClass = MessageClass.parseDataCoding(dataCoding); } Alphabet alphabet = Alphabet.parseDataCoding(dataCoding); return new GeneralDataCoding(alphabet, messageClass, compressed); }
public DataCoding newInstance(byte dataCoding) { /* * Mobile may discard the contents of the message, and only present the * indication to the user. */ IndicationSense indicationSense = IndicationSense.parseDataCoding(dataCoding); IndicationType indicationType = IndicationType.parseDataCoding(dataCoding); return new MessageWaitingDataCoding(indicationSense, indicationType, null); } }
public BindRequest(Bind bind, ServerResponseHandler responseHandler) { this(bind.getSequenceNumber(), BindType.valueOf(bind.getCommandId()), bind.getSystemId(), bind.getPassword(), bind.getSystemType(), TypeOfNumber.valueOf(bind.getAddrTon()), NumberingPlanIndicator.valueOf(bind.getAddrNpi()), bind.getAddressRange(), responseHandler); }
public DataCoding newInstance(byte dataCoding) { boolean compressed = isCompressed(dataCoding); boolean containMessageClass = isContainMessageClass(dataCoding); MessageClass messageClass = null; if (containMessageClass) { // ignore Message Class if the PDU has tell us no Message Class messageClass = MessageClass.parseDataCoding(dataCoding); } Alphabet alphabet = Alphabet.parseDataCoding(dataCoding); return new GeneralDataCoding(alphabet, messageClass, compressed); }
public DataCoding newInstance(byte dataCoding) { // bit 3 is reserved, and set to 0 byte fixedDataCoding = (byte)(MASK_BIT3_REMOVAL & dataCoding); Alphabet alphabet = Alphabet.parseDataCoding(fixedDataCoding); MessageClass messageClass = MessageClass.parseDataCoding(fixedDataCoding); return new SimpleDataCoding(alphabet, messageClass); } }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((alphabet == null) ? 0 : alphabet.hashCode()); result = prime * result + ((indicationSense == null) ? 0 : indicationSense.hashCode()); result = prime * result + ((indicationType == null) ? 0 : indicationType.hashCode()); return result; }
/** * Check the GSM Specific Feature is contained in ESM class value. * * @param esmClass is the ESM class. * @return <tt>true</tt> if the GSM specific feature is contained in ESM class. */ public boolean containedIn(ESMClass esmClass) { return containedIn(esmClass.value()); }
@Override public String toString() { return getDestNetworkType().toString(); } }
@Override public String toString() { return getDestBearerType().toString(); } }
@Override public String toString() { return getSourceNetworkType().toString(); } }
public BindRequest(Bind bind, ServerResponseHandler responseHandler) { this(bind.getSequenceNumber(), BindType.valueOf(bind.getCommandId()), bind.getSystemId(), bind.getPassword(), bind.getSystemType(), TypeOfNumber.valueOf(bind.getAddrTon()), NumberingPlanIndicator.valueOf(bind.getAddrNpi()), bind.getAddressRange(), responseHandler); }
public DataCoding newInstance(byte dataCoding) { /* * Mobile shall store the text message of the SMS in addition to setting * indication */ IndicationSense indicationSense = IndicationSense.parseDataCoding(dataCoding); IndicationType indicationType = IndicationType.parseDataCoding(dataCoding); return new MessageWaitingDataCoding(indicationSense, indicationType, Alphabet.ALPHA_DEFAULT); } }
public BindRequest(Bind bind, GenericServerResponseHandler responseHandler) { this(bind.getSequenceNumber(), BindType.valueOf(bind.getCommandId()), bind.getSystemId(), bind.getPassword(), bind.getSystemType(), TypeOfNumber.valueOf(bind.getAddrTon()), NumberingPlanIndicator.valueOf(bind.getAddrNpi()), bind.getAddressRange(), InterfaceVersion.valueOf(bind.getInterfaceVersion()), responseHandler); }
public DataCoding newInstance(byte dataCoding) { /* * Mobile may discard the contents of the message, and only present the * indication to the user. */ IndicationSense indicationSense = IndicationSense.parseDataCoding(dataCoding); IndicationType indicationType = IndicationType.parseDataCoding(dataCoding); return new MessageWaitingDataCoding(indicationSense, indicationType, null); } }
public BindRequest(Bind bind, ServerResponseHandler responseHandler) { this(bind.getSequenceNumber(), BindType.valueOf(bind.getCommandId()), bind.getSystemId(), bind.getPassword(), bind.getSystemType(), TypeOfNumber.valueOf(bind.getAddrTon()), NumberingPlanIndicator.valueOf(bind.getAddrNpi()), bind.getAddressRange(), InterfaceVersion.valueOf(bind.getInterfaceVersion()), responseHandler); }
public DataCoding newInstance(byte dataCoding) { // it's uncompressed UCS2 IndicationSense indicationSense = IndicationSense.parseDataCoding(dataCoding); IndicationType indicationType = IndicationType.parseDataCoding(dataCoding); return new MessageWaitingDataCoding(indicationSense, indicationType, Alphabet.ALPHA_UCS2); } }
public DataCoding newInstance(byte dataCoding) { /* * Mobile shall store the text message of the SMS in addition to setting * indication */ IndicationSense indicationSense = IndicationSense.parseDataCoding(dataCoding); IndicationType indicationType = IndicationType.parseDataCoding(dataCoding); return new MessageWaitingDataCoding(indicationSense, indicationType, Alphabet.ALPHA_DEFAULT); } }