This repository has been archived on 2025-03-19. You can view files and clone it, but cannot push or open issues or pull requests.
gonetworkmanager/AccessPoint.go
2016-05-24 20:58:18 -04:00

29 lines
621 B
Go

package gonetworkmanager
import (
"github.com/godbus/dbus"
)
const (
AccessPointInterface = NetworkManagerInterface + ".AccessPoint"
AccessPointPropertySSID = AccessPointInterface + ".Ssid"
)
type AccessPoint interface {
// GetSSID returns the Service Set Identifier identifying the access point.
GetSSID() string
}
func NewAccessPoint(objectPath dbus.ObjectPath) (AccessPoint, error) {
var a accessPoint
return &a, a.init(NetworkManagerInterface, objectPath)
}
type accessPoint struct {
dbusBase
}
func (a *accessPoint) GetSSID() string {
return string(a.getSliceByteProperty(AccessPointPropertySSID))
}