/*This file is automatically generated by pkg.deepin.io/dbus-generator. Don't edit it*/
package networkmanager

import "pkg.deepin.io/lib/dbus"
import "pkg.deepin.io/lib/dbus/property"
import "reflect"
import "sync"
import "runtime"
import "fmt"
import "errors"

/*prevent compile error*/
var _ = fmt.Println
var _ = runtime.SetFinalizer
var _ = sync.NewCond
var _ = reflect.TypeOf
var _ = property.BaseObserver{}

type DeviceVxlan struct {
	Path     dbus.ObjectPath
	DestName string
	core     *dbus.Object

	signals       map[<-chan *dbus.Signal]struct{}
	signalsLocker sync.Mutex

	Parent     *dbusPropertyDeviceVxlanParent
	HwAddress  *dbusPropertyDeviceVxlanHwAddress
	Id         *dbusPropertyDeviceVxlanId
	Group      *dbusPropertyDeviceVxlanGroup
	Local      *dbusPropertyDeviceVxlanLocal
	Tos        *dbusPropertyDeviceVxlanTos
	Ttl        *dbusPropertyDeviceVxlanTtl
	Learning   *dbusPropertyDeviceVxlanLearning
	Ageing     *dbusPropertyDeviceVxlanAgeing
	Limit      *dbusPropertyDeviceVxlanLimit
	DstPort    *dbusPropertyDeviceVxlanDstPort
	SrcPortMin *dbusPropertyDeviceVxlanSrcPortMin
	SrcPortMax *dbusPropertyDeviceVxlanSrcPortMax
	Proxy      *dbusPropertyDeviceVxlanProxy
	Rsc        *dbusPropertyDeviceVxlanRsc
	L2miss     *dbusPropertyDeviceVxlanL2miss
	L3miss     *dbusPropertyDeviceVxlanL3miss
}

func (obj *DeviceVxlan) _createSignalChan() <-chan *dbus.Signal {
	obj.signalsLocker.Lock()
	ch := getBus().Signal()
	obj.signals[ch] = struct{}{}
	obj.signalsLocker.Unlock()
	return ch
}
func (obj *DeviceVxlan) _deleteSignalChan(ch <-chan *dbus.Signal) {
	obj.signalsLocker.Lock()
	delete(obj.signals, ch)
	getBus().DetachSignal(ch)
	obj.signalsLocker.Unlock()
}
func DestroyDeviceVxlan(obj *DeviceVxlan) {
	obj.signalsLocker.Lock()
	defer obj.signalsLocker.Unlock()
	if obj.signals == nil {
		return
	}
	for ch, _ := range obj.signals {
		getBus().DetachSignal(ch)
	}
	obj.signals = nil

	runtime.SetFinalizer(obj, nil)

	dbusRemoveMatch("type='signal',path='" + string(obj.Path) + "',interface='org.freedesktop.DBus.Properties',sender='" + obj.DestName + "',member='PropertiesChanged'")
	dbusRemoveMatch("type='signal',path='" + string(obj.Path) + "',interface='org.freedesktop.NetworkManager.Device.Vxlan',sender='" + obj.DestName + "',member='PropertiesChanged'")

	dbusRemoveMatch("type='signal',path='" + string(obj.Path) + "',interface='org.freedesktop.NetworkManager.Device.Vxlan',sender='" + obj.DestName + "',member='PropertiesChanged'")

	obj.Parent.Reset()
	obj.HwAddress.Reset()
	obj.Id.Reset()
	obj.Group.Reset()
	obj.Local.Reset()
	obj.Tos.Reset()
	obj.Ttl.Reset()
	obj.Learning.Reset()
	obj.Ageing.Reset()
	obj.Limit.Reset()
	obj.DstPort.Reset()
	obj.SrcPortMin.Reset()
	obj.SrcPortMax.Reset()
	obj.Proxy.Reset()
	obj.Rsc.Reset()
	obj.L2miss.Reset()
	obj.L3miss.Reset()
}

func (obj *DeviceVxlan) ConnectPropertiesChanged(callback func(properties map[string]dbus.Variant)) func() {
	sigChan := obj._createSignalChan()
	go func() {
		for v := range sigChan {
			if v.Path != obj.Path || v.Name != "org.freedesktop.NetworkManager.Device.Vxlan.PropertiesChanged" || 1 != len(v.Body) {
				continue
			}
			if reflect.TypeOf(v.Body[0]) != reflect.TypeOf((*map[string]dbus.Variant)(nil)).Elem() {
				continue
			}

			callback(v.Body[0].(map[string]dbus.Variant))
		}
	}()
	return func() {
		obj._deleteSignalChan(sigChan)
	}
}

type dbusPropertyDeviceVxlanParent struct {
	*property.BaseObserver
	core *dbus.Object
}

func (this *dbusPropertyDeviceVxlanParent) SetValue(notwritable interface{}) {
	fmt.Println("org.freedesktop.NetworkManager.Device.Vxlan.Parent is not writable")
}

func (this *dbusPropertyDeviceVxlanParent) Get() dbus.ObjectPath {
	v, _ := this.GetValue()
	return v.(dbus.ObjectPath)
}
func (this *dbusPropertyDeviceVxlanParent) GetValue() (interface{} /*dbus.ObjectPath*/, error) {
	var r dbus.Variant
	err := this.core.Call("org.freedesktop.DBus.Properties.Get", 0, "org.freedesktop.NetworkManager.Device.Vxlan", "Parent").Store(&r)
	if err == nil && r.Signature().String() == "o" {
		return r.Value().(dbus.ObjectPath), nil
	}
	return *new(dbus.ObjectPath), err
}
func (this *dbusPropertyDeviceVxlanParent) GetType() reflect.Type {
	return reflect.TypeOf((*dbus.ObjectPath)(nil)).Elem()
}

type dbusPropertyDeviceVxlanHwAddress struct {
	*property.BaseObserver
	core *dbus.Object
}

func (this *dbusPropertyDeviceVxlanHwAddress) SetValue(notwritable interface{}) {
	fmt.Println("org.freedesktop.NetworkManager.Device.Vxlan.HwAddress is not writable")
}

func (this *dbusPropertyDeviceVxlanHwAddress) Get() string {
	v, _ := this.GetValue()
	return v.(string)
}
func (this *dbusPropertyDeviceVxlanHwAddress) GetValue() (interface{} /*string*/, error) {
	var r dbus.Variant
	err := this.core.Call("org.freedesktop.DBus.Properties.Get", 0, "org.freedesktop.NetworkManager.Device.Vxlan", "HwAddress").Store(&r)
	if err == nil && r.Signature().String() == "s" {
		return r.Value().(string), nil
	}
	return *new(string), err
}
func (this *dbusPropertyDeviceVxlanHwAddress) GetType() reflect.Type {
	return reflect.TypeOf((*string)(nil)).Elem()
}

type dbusPropertyDeviceVxlanId struct {
	*property.BaseObserver
	core *dbus.Object
}

func (this *dbusPropertyDeviceVxlanId) SetValue(notwritable interface{}) {
	fmt.Println("org.freedesktop.NetworkManager.Device.Vxlan.Id is not writable")
}

func (this *dbusPropertyDeviceVxlanId) Get() uint32 {
	v, _ := this.GetValue()
	return v.(uint32)
}
func (this *dbusPropertyDeviceVxlanId) GetValue() (interface{} /*uint32*/, error) {
	var r dbus.Variant
	err := this.core.Call("org.freedesktop.DBus.Properties.Get", 0, "org.freedesktop.NetworkManager.Device.Vxlan", "Id").Store(&r)
	if err == nil && r.Signature().String() == "u" {
		return r.Value().(uint32), nil
	}
	return *new(uint32), err
}
func (this *dbusPropertyDeviceVxlanId) GetType() reflect.Type {
	return reflect.TypeOf((*uint32)(nil)).Elem()
}

type dbusPropertyDeviceVxlanGroup struct {
	*property.BaseObserver
	core *dbus.Object
}

func (this *dbusPropertyDeviceVxlanGroup) SetValue(notwritable interface{}) {
	fmt.Println("org.freedesktop.NetworkManager.Device.Vxlan.Group is not writable")
}

func (this *dbusPropertyDeviceVxlanGroup) Get() string {
	v, _ := this.GetValue()
	return v.(string)
}
func (this *dbusPropertyDeviceVxlanGroup) GetValue() (interface{} /*string*/, error) {
	var r dbus.Variant
	err := this.core.Call("org.freedesktop.DBus.Properties.Get", 0, "org.freedesktop.NetworkManager.Device.Vxlan", "Group").Store(&r)
	if err == nil && r.Signature().String() == "s" {
		return r.Value().(string), nil
	}
	return *new(string), err
}
func (this *dbusPropertyDeviceVxlanGroup) GetType() reflect.Type {
	return reflect.TypeOf((*string)(nil)).Elem()
}

type dbusPropertyDeviceVxlanLocal struct {
	*property.BaseObserver
	core *dbus.Object
}

func (this *dbusPropertyDeviceVxlanLocal) SetValue(notwritable interface{}) {
	fmt.Println("org.freedesktop.NetworkManager.Device.Vxlan.Local is not writable")
}

func (this *dbusPropertyDeviceVxlanLocal) Get() string {
	v, _ := this.GetValue()
	return v.(string)
}
func (this *dbusPropertyDeviceVxlanLocal) GetValue() (interface{} /*string*/, error) {
	var r dbus.Variant
	err := this.core.Call("org.freedesktop.DBus.Properties.Get", 0, "org.freedesktop.NetworkManager.Device.Vxlan", "Local").Store(&r)
	if err == nil && r.Signature().String() == "s" {
		return r.Value().(string), nil
	}
	return *new(string), err
}
func (this *dbusPropertyDeviceVxlanLocal) GetType() reflect.Type {
	return reflect.TypeOf((*string)(nil)).Elem()
}

type dbusPropertyDeviceVxlanTos struct {
	*property.BaseObserver
	core *dbus.Object
}

func (this *dbusPropertyDeviceVxlanTos) SetValue(notwritable interface{}) {
	fmt.Println("org.freedesktop.NetworkManager.Device.Vxlan.Tos is not writable")
}

func (this *dbusPropertyDeviceVxlanTos) Get() uint8 {
	v, _ := this.GetValue()
	return v.(uint8)
}
func (this *dbusPropertyDeviceVxlanTos) GetValue() (interface{} /*uint8*/, error) {
	var r dbus.Variant
	err := this.core.Call("org.freedesktop.DBus.Properties.Get", 0, "org.freedesktop.NetworkManager.Device.Vxlan", "Tos").Store(&r)
	if err == nil && r.Signature().String() == "y" {
		return r.Value().(uint8), nil
	}
	return *new(uint8), err
}
func (this *dbusPropertyDeviceVxlanTos) GetType() reflect.Type {
	return reflect.TypeOf((*uint8)(nil)).Elem()
}

type dbusPropertyDeviceVxlanTtl struct {
	*property.BaseObserver
	core *dbus.Object
}

func (this *dbusPropertyDeviceVxlanTtl) SetValue(notwritable interface{}) {
	fmt.Println("org.freedesktop.NetworkManager.Device.Vxlan.Ttl is not writable")
}

func (this *dbusPropertyDeviceVxlanTtl) Get() uint8 {
	v, _ := this.GetValue()
	return v.(uint8)
}
func (this *dbusPropertyDeviceVxlanTtl) GetValue() (interface{} /*uint8*/, error) {
	var r dbus.Variant
	err := this.core.Call("org.freedesktop.DBus.Properties.Get", 0, "org.freedesktop.NetworkManager.Device.Vxlan", "Ttl").Store(&r)
	if err == nil && r.Signature().String() == "y" {
		return r.Value().(uint8), nil
	}
	return *new(uint8), err
}
func (this *dbusPropertyDeviceVxlanTtl) GetType() reflect.Type {
	return reflect.TypeOf((*uint8)(nil)).Elem()
}

type dbusPropertyDeviceVxlanLearning struct {
	*property.BaseObserver
	core *dbus.Object
}

func (this *dbusPropertyDeviceVxlanLearning) SetValue(notwritable interface{}) {
	fmt.Println("org.freedesktop.NetworkManager.Device.Vxlan.Learning is not writable")
}

func (this *dbusPropertyDeviceVxlanLearning) Get() bool {
	v, _ := this.GetValue()
	return v.(bool)
}
func (this *dbusPropertyDeviceVxlanLearning) GetValue() (interface{} /*bool*/, error) {
	var r dbus.Variant
	err := this.core.Call("org.freedesktop.DBus.Properties.Get", 0, "org.freedesktop.NetworkManager.Device.Vxlan", "Learning").Store(&r)
	if err == nil && r.Signature().String() == "b" {
		return r.Value().(bool), nil
	}
	return *new(bool), err
}
func (this *dbusPropertyDeviceVxlanLearning) GetType() reflect.Type {
	return reflect.TypeOf((*bool)(nil)).Elem()
}

type dbusPropertyDeviceVxlanAgeing struct {
	*property.BaseObserver
	core *dbus.Object
}

func (this *dbusPropertyDeviceVxlanAgeing) SetValue(notwritable interface{}) {
	fmt.Println("org.freedesktop.NetworkManager.Device.Vxlan.Ageing is not writable")
}

func (this *dbusPropertyDeviceVxlanAgeing) Get() uint32 {
	v, _ := this.GetValue()
	return v.(uint32)
}
func (this *dbusPropertyDeviceVxlanAgeing) GetValue() (interface{} /*uint32*/, error) {
	var r dbus.Variant
	err := this.core.Call("org.freedesktop.DBus.Properties.Get", 0, "org.freedesktop.NetworkManager.Device.Vxlan", "Ageing").Store(&r)
	if err == nil && r.Signature().String() == "u" {
		return r.Value().(uint32), nil
	}
	return *new(uint32), err
}
func (this *dbusPropertyDeviceVxlanAgeing) GetType() reflect.Type {
	return reflect.TypeOf((*uint32)(nil)).Elem()
}

type dbusPropertyDeviceVxlanLimit struct {
	*property.BaseObserver
	core *dbus.Object
}

func (this *dbusPropertyDeviceVxlanLimit) SetValue(notwritable interface{}) {
	fmt.Println("org.freedesktop.NetworkManager.Device.Vxlan.Limit is not writable")
}

func (this *dbusPropertyDeviceVxlanLimit) Get() uint32 {
	v, _ := this.GetValue()
	return v.(uint32)
}
func (this *dbusPropertyDeviceVxlanLimit) GetValue() (interface{} /*uint32*/, error) {
	var r dbus.Variant
	err := this.core.Call("org.freedesktop.DBus.Properties.Get", 0, "org.freedesktop.NetworkManager.Device.Vxlan", "Limit").Store(&r)
	if err == nil && r.Signature().String() == "u" {
		return r.Value().(uint32), nil
	}
	return *new(uint32), err
}
func (this *dbusPropertyDeviceVxlanLimit) GetType() reflect.Type {
	return reflect.TypeOf((*uint32)(nil)).Elem()
}

type dbusPropertyDeviceVxlanDstPort struct {
	*property.BaseObserver
	core *dbus.Object
}

func (this *dbusPropertyDeviceVxlanDstPort) SetValue(notwritable interface{}) {
	fmt.Println("org.freedesktop.NetworkManager.Device.Vxlan.DstPort is not writable")
}

func (this *dbusPropertyDeviceVxlanDstPort) Get() uint16 {
	v, _ := this.GetValue()
	return v.(uint16)
}
func (this *dbusPropertyDeviceVxlanDstPort) GetValue() (interface{} /*uint16*/, error) {
	var r dbus.Variant
	err := this.core.Call("org.freedesktop.DBus.Properties.Get", 0, "org.freedesktop.NetworkManager.Device.Vxlan", "DstPort").Store(&r)
	if err == nil && r.Signature().String() == "q" {
		return r.Value().(uint16), nil
	}
	return *new(uint16), err
}
func (this *dbusPropertyDeviceVxlanDstPort) GetType() reflect.Type {
	return reflect.TypeOf((*uint16)(nil)).Elem()
}

type dbusPropertyDeviceVxlanSrcPortMin struct {
	*property.BaseObserver
	core *dbus.Object
}

func (this *dbusPropertyDeviceVxlanSrcPortMin) SetValue(notwritable interface{}) {
	fmt.Println("org.freedesktop.NetworkManager.Device.Vxlan.SrcPortMin is not writable")
}

func (this *dbusPropertyDeviceVxlanSrcPortMin) Get() uint16 {
	v, _ := this.GetValue()
	return v.(uint16)
}
func (this *dbusPropertyDeviceVxlanSrcPortMin) GetValue() (interface{} /*uint16*/, error) {
	var r dbus.Variant
	err := this.core.Call("org.freedesktop.DBus.Properties.Get", 0, "org.freedesktop.NetworkManager.Device.Vxlan", "SrcPortMin").Store(&r)
	if err == nil && r.Signature().String() == "q" {
		return r.Value().(uint16), nil
	}
	return *new(uint16), err
}
func (this *dbusPropertyDeviceVxlanSrcPortMin) GetType() reflect.Type {
	return reflect.TypeOf((*uint16)(nil)).Elem()
}

type dbusPropertyDeviceVxlanSrcPortMax struct {
	*property.BaseObserver
	core *dbus.Object
}

func (this *dbusPropertyDeviceVxlanSrcPortMax) SetValue(notwritable interface{}) {
	fmt.Println("org.freedesktop.NetworkManager.Device.Vxlan.SrcPortMax is not writable")
}

func (this *dbusPropertyDeviceVxlanSrcPortMax) Get() uint16 {
	v, _ := this.GetValue()
	return v.(uint16)
}
func (this *dbusPropertyDeviceVxlanSrcPortMax) GetValue() (interface{} /*uint16*/, error) {
	var r dbus.Variant
	err := this.core.Call("org.freedesktop.DBus.Properties.Get", 0, "org.freedesktop.NetworkManager.Device.Vxlan", "SrcPortMax").Store(&r)
	if err == nil && r.Signature().String() == "q" {
		return r.Value().(uint16), nil
	}
	return *new(uint16), err
}
func (this *dbusPropertyDeviceVxlanSrcPortMax) GetType() reflect.Type {
	return reflect.TypeOf((*uint16)(nil)).Elem()
}

type dbusPropertyDeviceVxlanProxy struct {
	*property.BaseObserver
	core *dbus.Object
}

func (this *dbusPropertyDeviceVxlanProxy) SetValue(notwritable interface{}) {
	fmt.Println("org.freedesktop.NetworkManager.Device.Vxlan.Proxy is not writable")
}

func (this *dbusPropertyDeviceVxlanProxy) Get() bool {
	v, _ := this.GetValue()
	return v.(bool)
}
func (this *dbusPropertyDeviceVxlanProxy) GetValue() (interface{} /*bool*/, error) {
	var r dbus.Variant
	err := this.core.Call("org.freedesktop.DBus.Properties.Get", 0, "org.freedesktop.NetworkManager.Device.Vxlan", "Proxy").Store(&r)
	if err == nil && r.Signature().String() == "b" {
		return r.Value().(bool), nil
	}
	return *new(bool), err
}
func (this *dbusPropertyDeviceVxlanProxy) GetType() reflect.Type {
	return reflect.TypeOf((*bool)(nil)).Elem()
}

type dbusPropertyDeviceVxlanRsc struct {
	*property.BaseObserver
	core *dbus.Object
}

func (this *dbusPropertyDeviceVxlanRsc) SetValue(notwritable interface{}) {
	fmt.Println("org.freedesktop.NetworkManager.Device.Vxlan.Rsc is not writable")
}

func (this *dbusPropertyDeviceVxlanRsc) Get() bool {
	v, _ := this.GetValue()
	return v.(bool)
}
func (this *dbusPropertyDeviceVxlanRsc) GetValue() (interface{} /*bool*/, error) {
	var r dbus.Variant
	err := this.core.Call("org.freedesktop.DBus.Properties.Get", 0, "org.freedesktop.NetworkManager.Device.Vxlan", "Rsc").Store(&r)
	if err == nil && r.Signature().String() == "b" {
		return r.Value().(bool), nil
	}
	return *new(bool), err
}
func (this *dbusPropertyDeviceVxlanRsc) GetType() reflect.Type {
	return reflect.TypeOf((*bool)(nil)).Elem()
}

type dbusPropertyDeviceVxlanL2miss struct {
	*property.BaseObserver
	core *dbus.Object
}

func (this *dbusPropertyDeviceVxlanL2miss) SetValue(notwritable interface{}) {
	fmt.Println("org.freedesktop.NetworkManager.Device.Vxlan.L2miss is not writable")
}

func (this *dbusPropertyDeviceVxlanL2miss) Get() bool {
	v, _ := this.GetValue()
	return v.(bool)
}
func (this *dbusPropertyDeviceVxlanL2miss) GetValue() (interface{} /*bool*/, error) {
	var r dbus.Variant
	err := this.core.Call("org.freedesktop.DBus.Properties.Get", 0, "org.freedesktop.NetworkManager.Device.Vxlan", "L2miss").Store(&r)
	if err == nil && r.Signature().String() == "b" {
		return r.Value().(bool), nil
	}
	return *new(bool), err
}
func (this *dbusPropertyDeviceVxlanL2miss) GetType() reflect.Type {
	return reflect.TypeOf((*bool)(nil)).Elem()
}

type dbusPropertyDeviceVxlanL3miss struct {
	*property.BaseObserver
	core *dbus.Object
}

func (this *dbusPropertyDeviceVxlanL3miss) SetValue(notwritable interface{}) {
	fmt.Println("org.freedesktop.NetworkManager.Device.Vxlan.L3miss is not writable")
}

func (this *dbusPropertyDeviceVxlanL3miss) Get() bool {
	v, _ := this.GetValue()
	return v.(bool)
}
func (this *dbusPropertyDeviceVxlanL3miss) GetValue() (interface{} /*bool*/, error) {
	var r dbus.Variant
	err := this.core.Call("org.freedesktop.DBus.Properties.Get", 0, "org.freedesktop.NetworkManager.Device.Vxlan", "L3miss").Store(&r)
	if err == nil && r.Signature().String() == "b" {
		return r.Value().(bool), nil
	}
	return *new(bool), err
}
func (this *dbusPropertyDeviceVxlanL3miss) GetType() reflect.Type {
	return reflect.TypeOf((*bool)(nil)).Elem()
}

func NewDeviceVxlan(destName string, path dbus.ObjectPath) (*DeviceVxlan, error) {
	if !path.IsValid() {
		return nil, errors.New("The path of '" + string(path) + "' is invalid.")
	}

	core := getBus().Object(destName, path)

	obj := &DeviceVxlan{Path: path, DestName: destName, core: core, signals: make(map[<-chan *dbus.Signal]struct{})}

	obj.Parent = &dbusPropertyDeviceVxlanParent{&property.BaseObserver{}, core}
	obj.HwAddress = &dbusPropertyDeviceVxlanHwAddress{&property.BaseObserver{}, core}
	obj.Id = &dbusPropertyDeviceVxlanId{&property.BaseObserver{}, core}
	obj.Group = &dbusPropertyDeviceVxlanGroup{&property.BaseObserver{}, core}
	obj.Local = &dbusPropertyDeviceVxlanLocal{&property.BaseObserver{}, core}
	obj.Tos = &dbusPropertyDeviceVxlanTos{&property.BaseObserver{}, core}
	obj.Ttl = &dbusPropertyDeviceVxlanTtl{&property.BaseObserver{}, core}
	obj.Learning = &dbusPropertyDeviceVxlanLearning{&property.BaseObserver{}, core}
	obj.Ageing = &dbusPropertyDeviceVxlanAgeing{&property.BaseObserver{}, core}
	obj.Limit = &dbusPropertyDeviceVxlanLimit{&property.BaseObserver{}, core}
	obj.DstPort = &dbusPropertyDeviceVxlanDstPort{&property.BaseObserver{}, core}
	obj.SrcPortMin = &dbusPropertyDeviceVxlanSrcPortMin{&property.BaseObserver{}, core}
	obj.SrcPortMax = &dbusPropertyDeviceVxlanSrcPortMax{&property.BaseObserver{}, core}
	obj.Proxy = &dbusPropertyDeviceVxlanProxy{&property.BaseObserver{}, core}
	obj.Rsc = &dbusPropertyDeviceVxlanRsc{&property.BaseObserver{}, core}
	obj.L2miss = &dbusPropertyDeviceVxlanL2miss{&property.BaseObserver{}, core}
	obj.L3miss = &dbusPropertyDeviceVxlanL3miss{&property.BaseObserver{}, core}

	dbusAddMatch("type='signal',path='" + string(path) + "',interface='org.freedesktop.DBus.Properties',sender='" + destName + "',member='PropertiesChanged'")
	dbusAddMatch("type='signal',path='" + string(path) + "',interface='org.freedesktop.NetworkManager.Device.Vxlan',sender='" + destName + "',member='PropertiesChanged'")
	sigChan := obj._createSignalChan()
	go func() {
		typeString := reflect.TypeOf("")
		typeKeyValues := reflect.TypeOf(map[string]dbus.Variant{})
		typeArrayValues := reflect.TypeOf([]string{})
		for v := range sigChan {
			if v.Name == "org.freedesktop.DBus.Properties.PropertiesChanged" &&
				len(v.Body) == 3 &&
				reflect.TypeOf(v.Body[0]) == typeString &&
				reflect.TypeOf(v.Body[1]) == typeKeyValues &&
				reflect.TypeOf(v.Body[2]) == typeArrayValues &&
				v.Body[0].(string) == "org.freedesktop.NetworkManager.Device.Vxlan" {
				props := v.Body[1].(map[string]dbus.Variant)
				for key, _ := range props {
					if false {
					} else if key == "Parent" {
						obj.Parent.Notify()

					} else if key == "HwAddress" {
						obj.HwAddress.Notify()

					} else if key == "Id" {
						obj.Id.Notify()

					} else if key == "Group" {
						obj.Group.Notify()

					} else if key == "Local" {
						obj.Local.Notify()

					} else if key == "Tos" {
						obj.Tos.Notify()

					} else if key == "Ttl" {
						obj.Ttl.Notify()

					} else if key == "Learning" {
						obj.Learning.Notify()

					} else if key == "Ageing" {
						obj.Ageing.Notify()

					} else if key == "Limit" {
						obj.Limit.Notify()

					} else if key == "DstPort" {
						obj.DstPort.Notify()

					} else if key == "SrcPortMin" {
						obj.SrcPortMin.Notify()

					} else if key == "SrcPortMax" {
						obj.SrcPortMax.Notify()

					} else if key == "Proxy" {
						obj.Proxy.Notify()

					} else if key == "Rsc" {
						obj.Rsc.Notify()

					} else if key == "L2miss" {
						obj.L2miss.Notify()

					} else if key == "L3miss" {
						obj.L3miss.Notify()
					}
				}
			} else if v.Name == "org.freedesktop.NetworkManager.Device.Vxlan.PropertiesChanged" && len(v.Body) == 1 && reflect.TypeOf(v.Body[0]) == typeKeyValues {
				for key, _ := range v.Body[0].(map[string]dbus.Variant) {
					if false {
					} else if key == "Parent" {
						obj.Parent.Notify()

					} else if key == "HwAddress" {
						obj.HwAddress.Notify()

					} else if key == "Id" {
						obj.Id.Notify()

					} else if key == "Group" {
						obj.Group.Notify()

					} else if key == "Local" {
						obj.Local.Notify()

					} else if key == "Tos" {
						obj.Tos.Notify()

					} else if key == "Ttl" {
						obj.Ttl.Notify()

					} else if key == "Learning" {
						obj.Learning.Notify()

					} else if key == "Ageing" {
						obj.Ageing.Notify()

					} else if key == "Limit" {
						obj.Limit.Notify()

					} else if key == "DstPort" {
						obj.DstPort.Notify()

					} else if key == "SrcPortMin" {
						obj.SrcPortMin.Notify()

					} else if key == "SrcPortMax" {
						obj.SrcPortMax.Notify()

					} else if key == "Proxy" {
						obj.Proxy.Notify()

					} else if key == "Rsc" {
						obj.Rsc.Notify()

					} else if key == "L2miss" {
						obj.L2miss.Notify()

					} else if key == "L3miss" {
						obj.L3miss.Notify()
					}
				}
			}
		}
	}()

	dbusAddMatch("type='signal',path='" + string(obj.Path) + "',interface='org.freedesktop.NetworkManager.Device.Vxlan',sender='" + obj.DestName + "',member='PropertiesChanged'")

	runtime.SetFinalizer(obj, func(_obj *DeviceVxlan) { DestroyDeviceVxlan(_obj) })
	return obj, nil
}
