Search in sources :

Example 1 with NationalLanguageLockingShiftIdentifier

use of org.mobicents.protocols.ss7.map.api.smstpdu.NationalLanguageLockingShiftIdentifier in project smscgateway by RestComm.

the class MessageUtil method getNationalLanguageIdentifierUdh.

public static UserDataHeader getNationalLanguageIdentifierUdh(int nationalLanguageLockingShift, int nationalLanguageSingleShift) {
    UserDataHeader udh = null;
    if (nationalLanguageSingleShift > 0 || nationalLanguageLockingShift > 0) {
        udh = new UserDataHeaderImpl();
        if (nationalLanguageSingleShift > 0) {
            NationalLanguageIdentifier nli = NationalLanguageIdentifier.getInstance(nationalLanguageSingleShift);
            NationalLanguageSingleShiftIdentifier informationElement = new NationalLanguageSingleShiftIdentifierImpl(nli);
            udh.addInformationElement(informationElement);
        }
        if (nationalLanguageLockingShift > 0) {
            NationalLanguageIdentifier nli = NationalLanguageIdentifier.getInstance(nationalLanguageLockingShift);
            NationalLanguageLockingShiftIdentifier informationElement = new NationalLanguageLockingShiftIdentifierImpl(nli);
            udh.addInformationElement(informationElement);
        }
    }
    return udh;
}
Also used : UserDataHeaderImpl(org.restcomm.protocols.ss7.map.smstpdu.UserDataHeaderImpl) NationalLanguageSingleShiftIdentifier(org.restcomm.protocols.ss7.map.api.smstpdu.NationalLanguageSingleShiftIdentifier) NationalLanguageSingleShiftIdentifierImpl(org.restcomm.protocols.ss7.map.smstpdu.NationalLanguageSingleShiftIdentifierImpl) NationalLanguageLockingShiftIdentifierImpl(org.restcomm.protocols.ss7.map.smstpdu.NationalLanguageLockingShiftIdentifierImpl) NationalLanguageLockingShiftIdentifier(org.restcomm.protocols.ss7.map.api.smstpdu.NationalLanguageLockingShiftIdentifier) UserDataHeader(org.restcomm.protocols.ss7.map.api.smstpdu.UserDataHeader) NationalLanguageIdentifier(org.restcomm.protocols.ss7.map.api.datacoding.NationalLanguageIdentifier)

Aggregations

NationalLanguageIdentifier (org.restcomm.protocols.ss7.map.api.datacoding.NationalLanguageIdentifier)1 NationalLanguageLockingShiftIdentifier (org.restcomm.protocols.ss7.map.api.smstpdu.NationalLanguageLockingShiftIdentifier)1 NationalLanguageSingleShiftIdentifier (org.restcomm.protocols.ss7.map.api.smstpdu.NationalLanguageSingleShiftIdentifier)1 UserDataHeader (org.restcomm.protocols.ss7.map.api.smstpdu.UserDataHeader)1 NationalLanguageLockingShiftIdentifierImpl (org.restcomm.protocols.ss7.map.smstpdu.NationalLanguageLockingShiftIdentifierImpl)1 NationalLanguageSingleShiftIdentifierImpl (org.restcomm.protocols.ss7.map.smstpdu.NationalLanguageSingleShiftIdentifierImpl)1 UserDataHeaderImpl (org.restcomm.protocols.ss7.map.smstpdu.UserDataHeaderImpl)1