summaryrefslogtreecommitdiffstats
path: root/codec/attributes/SMPPDataCoding.st
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-05-13 17:27:46 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-05-13 17:35:48 +0200
commit9f539f1c1343cc47d1bea8f750a1cf319facf42b (patch)
treec3da5650971741840bb6aeea32f573b910a8b814 /codec/attributes/SMPPDataCoding.st
parentefb09d0f74aa792dc453b379112c37b780a9ddf1 (diff)
submit: Implement parsing of the submit SM message
Not all attribute classes have all the attributes specified. The SMPPValueHolder routines for parsing/writing were not tested/executed and might contain issues. The sm_length/short_message was combined into a single attribute as it is more like a LV. The question if the >>readFrom:with: should read the length or not is something that keeps on coming up. I need to have a more sane way of handling that.
Diffstat (limited to 'codec/attributes/SMPPDataCoding.st')
-rw-r--r--codec/attributes/SMPPDataCoding.st28
1 files changed, 28 insertions, 0 deletions
diff --git a/codec/attributes/SMPPDataCoding.st b/codec/attributes/SMPPDataCoding.st
new file mode 100644
index 0000000..fb0d370
--- /dev/null
+++ b/codec/attributes/SMPPDataCoding.st
@@ -0,0 +1,28 @@
+"
+ (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 <http://www.gnu.org/licenses/>.
+"
+
+SMPPInteger subclass: SMPPDataCoding [
+ <comment: 'I represent a 5.2.19'>
+
+ SMPPDataCoding class >> tlvDescription [
+ ^super tlvDescription
+ valueSize: 1;
+ instVarName: #data_coding;
+ yourself
+ ]
+]