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;
}
Aggregations