parsing

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2024 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BitErrorRate

type BitErrorRate int

func (BitErrorRate) Description

func (ber BitErrorRate) Description() string

type CharacterSet

type CharacterSet uint8
const (
	GSM7BitCharacterSet CharacterSet = iota
	UCS2CharacterSet
	InternationalReferenceCharacterSet
)

func CharacterSetFromString

func CharacterSetFromString(s string) CharacterSet

func (CharacterSet) String

func (c CharacterSet) String() string

type CommandSetCapability

type CommandSetCapability uint8
const (
	GSMCommandSet CommandSetCapability = iota
	FaxCommandSet
	DataServiceCommandSet
	MobileSpecificCommandSet
)

func CommandSetFromString

func CommandSetFromString(s string) CommandSetCapability

type DecibelMilliwatts

type DecibelMilliwatts int

func (DecibelMilliwatts) Description

func (dbm DecibelMilliwatts) Description() string

type EncodedString

type EncodedString string

func (EncodedString) FromAsciiString

func (s EncodedString) FromAsciiString() (EncodedString, error)

func (EncodedString) FromUCS2HexString

func (s EncodedString) FromUCS2HexString() (EncodedString, error)

func (EncodedString) RemoveQuotes

func (s EncodedString) RemoveQuotes() EncodedString

func (EncodedString) ToAsciiString

func (s EncodedString) ToAsciiString() (s1 EncodedString)

func (EncodedString) ToUCS2HexString

func (s EncodedString) ToUCS2HexString() (EncodedString, error)

type MessageDeleteFilter

type MessageDeleteFilter uint8
const (
	// ReadMessageDeleteFilter Delete all read messages from storage,
	// leaving unread messages and stored mobile originated messages (whether sent or not) untouched
	ReadMessageDeleteFilter MessageDeleteFilter = iota + 1
	// ReadAndSentMessageDeleteFilter Delete all read messages from storage and sent mobile originated messages,
	// leaving unread messages and unsent mobile originated messages untouched
	ReadAndSentMessageDeleteFilter
	// ReadSentAndUnsentMessageFilter Delete all read messages from storage, sent and unsent mobile originated
	// messages, leaving unread messages untouched
	ReadSentAndUnsentMessageFilter
	// AllMessageDeleteFilter Self explanatory: deletes all messages from storage.
	AllMessageDeleteFilter
)

type MessageFilter

type MessageFilter uint8
const (
	ReceivedUnreadMessageFilter MessageFilter = iota
	ReceivedReadMessageFilter
	StoredUnsentMessageFilter
	StoredSentMessageFilter
	AllMessageFilter
)

func MessageFilterFromString

func MessageFilterFromString(s string) MessageFilter

func (MessageFilter) String

func (c MessageFilter) String() string

type MessageFormat

type MessageFormat uint8
const (
	PDUMessageFormat MessageFormat = iota
	TextMessageFormat
)

type MessageStorage

type MessageStorage uint8
const (
	MobileEquipmentMessageStorage MessageStorage = iota
	SimMessageStorage
	StatusReportMessageStorage
	AllMessageStorage
)

func MessageStorageFromString

func MessageStorageFromString(s string) MessageStorage

func (MessageStorage) String

func (c MessageStorage) String() string

type PhoneNumberType

type PhoneNumberType uint8
const (
	NationalPhoneNumberType      PhoneNumberType = 129
	InternationalPhoneNumberType PhoneNumberType = 145
	TextPhoneNumberType          PhoneNumberType = 208
	Text2PhoneNumberType         PhoneNumberType = 209 // I know, it's stupid...
)

func (PhoneNumberType) IsText

func (p PhoneNumberType) IsText() bool

func (PhoneNumberType) String

func (p PhoneNumberType) String() string

type SMSMessage

type SMSMessage struct {
	Index           int
	Status          MessageFilter
	PhoneNumberType PhoneNumberType
	Sender          string
	Time            time.Time
	Text            string
}

type SMSMessagesString

type SMSMessagesString string

func (SMSMessagesString) Parsed

func (s SMSMessagesString) Parsed(prefix string) (messages []SMSMessage, err error)

type SignalQuality

type SignalQuality struct {
	DBM DecibelMilliwatts
	BER BitErrorRate
}

type SignalQualityString

type SignalQualityString string

func (SignalQualityString) Parsed

func (s SignalQualityString) Parsed() (sq SignalQuality, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL