"
(C) 2014 by Holger Hans Peter Freyther
All Rights Reserved
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
"
SMPPInteger subclass: SMPPESMClass [
SMPPESMClass class [
modeBitMask [
SMSC'>
^2r11
]
modeDefault [
SMSC'>
^2r00
]
modeDatagram [
SMSC'>
^2r01
]
modeForward [
SMSC'>
^2r10
]
typeBitMask [
SMSC'>
^2r00111100
]
typeDefault [
^2r0 bitShift: 2
]
typeSMSCDeliveryReceipt [
ESME'>
^2r1 bitShift: 2
]
typeESMEDeliveryAck [
SMSC'>
^2r10 bitShift: 2
]
typeESMEUserAck [
SMSC'>
^2r100 bitShift: 2
]
typeConversationAbort [
ESME'>
^2r110 bitShift: 2
]
typeIntermediateDeliveryNotification [
ESME'>
^2r1000 bitShift: 2
]
gsmBitMask [
^2r11000000
]
gsmNoSpecific [
^2r00000000
]
gsmUDHIIndicator [
^2r01000000
]
gsmReplyPath [
^2r10000000
]
gsmUHDIAndReplyPath [
^self gsmUDHIIndicator bitOr: self gsmReplyPath
]
]
SMPPESMClass class >> tlvDescription [
^super tlvDescription
valueSize: 1;
instVarName: #esm_class;
yourself
]
]