From 1ea6e77a9aa47bccc77dd194dc618f469f64c1db Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sat, 17 Oct 2015 18:51:24 +0200 Subject: KME stub --- kme/kme.go | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) (limited to 'kme') diff --git a/kme/kme.go b/kme/kme.go index 467ea55..11dcf0d 100644 --- a/kme/kme.go +++ b/kme/kme.go @@ -1 +1,77 @@ package kme + +import "github.com/dim13/asn1" + +type KME interface { + isKME() +} + +type KMESpecificPrivateData struct { + KmeCallControlSrvEvt + KmeDeviceStatus + KmeDeviceMonitor + KmeSystemData + KmeLocalAlerm + KmeAdditionalData + KmePrivateEvent + KmeResourceControl + KmeGenericSrvEvt + KmeExtendedDataAccess + KmePDFSrvEvt + KmeAlterIfSrvEvt + KmeHotelSrvEvt +} + +type KmeCallControlSrvEvt struct { + asn1.Tag `asn1:"optional,tag:1"` +} +type KmeDeviceStatus struct { + asn1.Tag `asn1:"optional,tag:2"` +} +type KmeDeviceMonitor struct { + asn1.Tag `asn1:"optional,tag:3"` +} +type KmeSystemData struct { + asn1.Tag `asn1:"optional,tag:4"` +} +type KmeLocalAlerm struct { + asn1.Tag `asn1:"optional,tag:5"` +} +type KmeAdditionalData struct { + asn1.Tag `asn1:"optional,tag:6"` +} +type KmePrivateEvent struct { + asn1.Tag `asn1:"optional,tag:7"` +} +type KmeResourceControl struct { + asn1.Tag `asn1:"optional,tag:8"` +} +type KmeGenericSrvEvt struct { + asn1.Tag `asn1:"optional,tag:9"` +} +type KmeExtendedDataAccess struct { + Value []byte `asn1:"optional,tag:10"` +} +type KmePDFSrvEvt struct { + asn1.Tag `asn1:"optional,tag:11"` +} +type KmeAlterIfSrvEvt struct { + asn1.Tag `asn1:"optional,tag:12"` +} +type KmeHotelSrvEvt struct { + asn1.Tag `asn1:"optional,tag:13"` +} + +func (KmeCallControlSrvEvt) isKME() {} +func (KmeDeviceStatus) isKME() {} +func (KmeDeviceMonitor) isKME() {} +func (KmeSystemData) isKME() {} +func (KmeLocalAlerm) isKME() {} +func (KmeAdditionalData) isKME() {} +func (KmePrivateEvent) isKME() {} +func (KmeResourceControl) isKME() {} +func (KmeGenericSrvEvt) isKME() {} +func (KmeExtendedDataAccess) isKME() {} +func (KmePDFSrvEvt) isKME() {} +func (KmeAlterIfSrvEvt) isKME() {} +func (KmeHotelSrvEvt) isKME() {} -- cgit v1.2.3