1
0
Fork 0
mirror of https://github.com/Luzifer/sii.git synced 2024-12-21 00:21:15 +00:00
sii/block_license_plate_data.go

27 lines
506 B
Go
Raw Permalink Normal View History

package sii
func init() {
RegisterBlock(&LicensePlateData{})
}
type LicensePlateData struct {
Type Ptr `sii:"type"`
Templates []string `sii:"templates"`
Def0 []string `sii:"def0"`
Def1 []string `sii:"def1"`
Def2 []string `sii:"def2"`
Def3 []string `sii:"def3"`
blockName string
}
func (LicensePlateData) Class() string { return "license_plate_data" }
func (l *LicensePlateData) Init(class, name string) {
l.blockName = name
}
func (l LicensePlateData) Name() string { return l.blockName }