20 lines
307 B
Go
20 lines
307 B
Go
package models
|
|
|
|
type KeypadSize struct {
|
|
AttrsPerKey int
|
|
NumbOfKeys int
|
|
}
|
|
|
|
func (kp *KeypadSize) TotalAttrs() int {
|
|
return kp.AttrsPerKey * kp.NumbOfKeys
|
|
}
|
|
|
|
func (kp *KeypadSize) IsDispersable() bool {
|
|
return kp.AttrsPerKey <= kp.NumbOfKeys
|
|
}
|
|
|
|
type EncipheredNKode struct {
|
|
Code string
|
|
Mask string
|
|
}
|