Did I find the right examples for you? yes no

All Samples(45)  |  Call(44)  |  Derive(0)  |  Import(1)

src/p/y/pythomnic3k-1.3/lib/smpp34/smpp_pdu_param_table.py   Pythomnic3k(Download)
 
import smpp34.smpp_tools; from smpp34.smpp_tools import *
import smpp34.smpp_pdu_param; from smpp34.smpp_pdu_param import MandatoryPDUParameter as _MP, OptionalPDUParameter as _OP
import smpp34.smpp_types; from smpp34.smpp_types import *
 
optional_pdu_parameters_table = \
{
_OP(   code = 0x0005,    name = "dest_addr_subunit",           type = SMPPInteger1,      check = lambda v: 0 <= v.value <= 4      ), # 5.3.2.1
_OP(   code = 0x0006,    name = "dest_network_type",           type = SMPPInteger1,      check = lambda v: 0 <= v.value <= 8      ), # 5.3.2.3
_OP(   code = 0x0007,    name = "dest_bearer_type",            type = SMPPInteger1,      check = lambda v: 0 <= v.value <= 8      ), # 5.3.2.5
_OP(   code = 0x0008,    name = "dest_telematics_id",          type = SMPPInteger2                                                ), # 5.3.2.7  *** WARNING *** spec says source_telematics_id is 1 byte