@Test public void testDataCodingVoicemailActive() { byte dataCodingByte = (byte) 0xd8; DataCoding dataCoding = factory.newInstance(dataCodingByte); assertEquals(dataCoding.getClass(), MessageWaitingDataCoding.class); assertEquals(IndicationSense.parseDataCoding(dataCoding.toByte()), IndicationSense.ACTIVE); assertEquals(IndicationType.parseDataCoding(dataCoding.toByte()), IndicationType.VOICEMAIL_MESSAGE_WAITING); }
public DataCoding newInstance(byte dataCoding) { IndicationSense indicationSense = IndicationSense.parseDataCoding(dataCoding); IndicationType indicationType = IndicationType.parseDataCoding(dataCoding); return new MessageWaitingDataCoding(indicationSense, indicationType, Alphabet.ALPHA_DEFAULT); }
DataCodingFactory1101 extends AbstractDataCodingFactory { public DataCoding newInstance(byte dataCoding) { IndicationSense indicationSense = IndicationSense.parseDataCoding(dataCoding); IndicationType indicationType = IndicationType.parseDataCoding(dataCoding); return new MessageWaitingDataCoding(indicationSense, indicationType, Alphabet.ALPHA_DEFAULT); } }
DataCodingFactory1101 extends AbstractDataCodingFactory { public DataCoding newInstance(byte dataCoding) { IndicationSense indicationSense = IndicationSense.parseDataCoding(dataCoding); IndicationType indicationType = IndicationType.parseDataCoding(dataCoding); return new MessageWaitingDataCoding(indicationSense, indicationType, Alphabet.ALPHA_DEFAULT); } DataCodingFactory1101(); }
DataCodingFactory1101 extends AbstractDataCodingFactory { public DataCoding newInstance(byte dataCoding) { IndicationSense indicationSense = IndicationSense.parseDataCoding(dataCoding); IndicationType indicationType = IndicationType.parseDataCoding(dataCoding); return new MessageWaitingDataCoding(indicationSense, indicationType, Alphabet.ALPHA_DEFAULT); } DataCodingFactory1101(); DataCoding newInstance(byte dataCoding); }
DataCodingFactory1101 extends AbstractDataCodingFactory { public DataCoding newInstance(byte dataCoding) { IndicationSense indicationSense = IndicationSense.parseDataCoding(dataCoding); IndicationType indicationType = IndicationType.parseDataCoding(dataCoding); return new MessageWaitingDataCoding(indicationSense, indicationType, Alphabet.ALPHA_DEFAULT); } DataCodingFactory1101(); DataCoding newInstance(byte dataCoding); static final byte MASK; static final byte GROUP; }