aboutsummaryrefslogtreecommitdiffstats
path: root/GSM48.st
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2012-11-24 10:35:26 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2012-11-24 10:35:26 +0100
commit8f1ee675569aad9b6f8a5e8172c60cf548d5043c (patch)
tree761c520c2be06b508dfd742f2402aae9b24fd9ec /GSM48.st
parent2c60c8b62a7d716a11cb78191a29be19b1868702 (diff)
gsm: Add a selector for the TMSI to the MIdentity
Diffstat (limited to 'GSM48.st')
-rw-r--r--GSM48.st7
1 files changed, 7 insertions, 0 deletions
diff --git a/GSM48.st b/GSM48.st
index a7bad46..d5502e7 100644
--- a/GSM48.st
+++ b/GSM48.st
@@ -597,6 +597,13 @@ GSM48VariableSizedIE subclass: GSM48MIdentity [
^ id
]
+ tmsi [
+ <category: 'query'>
+ self type = GSM48IdentityType typeTMSI
+ ifFalse: [^self error: 'Underlying type is not a TMSI'].
+ ^ id
+ ]
+
id: anId [
<category: 'creation'>
id := anId