smalltalk
/
osmo-st-gsm
Archived
1
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
osmo-st-gsm/Messages.st

74 lines
1.1 KiB
Smalltalk
Raw Normal View History

2010-11-14 21:37:50 +00:00
"Messages for GSM04.08"
Object subclass: IEMessage [
| ies type |
IEMessage class >> initWith: type [
^ (self new)
type: type;
yourself
]
type: aType [
type := aType.
]
addIe: aIe [
self ies add: aIe.
]
ies [
ies isNil ifTrue: [
ies := OrderedCollection new.
].
^ ies
]
storeOn: aMsg [
aMsg putByte: type.
self ies do: [:each | each storeOn: aMsg ]
]
]
2010-11-14 21:37:50 +00:00
Object subclass: LocationUpdatingRequest [
| imsi tmsi |
LocationUpdatingRequest class >> initWithIMSI: aImsi [
^ (self new)
imsi: aImsi;
yourself
]
LocationUpdatingRequest class >> initWithTMSI: aTmsi [
^ (self new)
tmsi: aTmsi;
yourself
]
toMessage [
]
]
Object subclass: LocationUpdatingAccept [
toMessage [
]
]
Object subclass: LocationUpdatingReject [
toMessage [
]
]
Object subclass: IdentityRequest [
toMessage [
]
]
Object subclass: IdentityResponse [
toMessage [
]
]