private OrgFreedesktopDbus(global::Dbus.Connection connection, global::Dbus.ObjectPath path, string destination)
 {
     this.connection  = connection;
     this.path        = path ?? "/org/freedesktop/DBus";
     this.destination = destination ?? "org.freedesktop.DBus";
     eventSubscriptions.Add(connection.RegisterSignalHandler(
                                this.path,
                                "org.freedesktop.DBus",
                                "NameAcquired",
                                this.handleNameAcquired
                                ));
 }
        private IOrgBluezLEAdvertisement1_Proxy(global::Dbus.Connection connection, global::Reproduction.IOrgBluezLEAdvertisement1 target, global::Dbus.ObjectPath path)
        {
            this.connection = connection;
            this.target     = target;
            this.path       = path;
            InterfaceName   = "org.bluez.LEAdvertisement1";
            registration    = connection.RegisterObjectProxy(
                path ?? "",
                InterfaceName,
                this
                );

            target.PropertyChanged += HandlePropertyChangedEventAsync;
        }
 private OrgFreedesktopDbusObjectManager(global::Dbus.Connection connection, global::Dbus.ObjectPath path, string destination)
 {
     this.connection  = connection;
     this.path        = path ?? "";
     this.destination = destination ?? "";
     eventSubscriptions.Add(connection.RegisterSignalHandler(
                                this.path,
                                "org.freedesktop.DBus.ObjectManager",
                                "InterfacesAdded",
                                this.handleInterfacesAdded
                                ));
     eventSubscriptions.Add(connection.RegisterSignalHandler(
                                this.path,
                                "org.freedesktop.DBus.ObjectManager",
                                "InterfacesRemoved",
                                this.handleInterfacesRemoved
                                ));
 }
        private OrgMprisMediaPlayer2Player(global::Dbus.Connection connection, global::Dbus.ObjectPath path, string destination)
        {
            this.connection  = connection;
            this.path        = path ?? "";
            this.destination = destination ?? "";
            eventSubscriptions.Add(connection.RegisterSignalHandler(
                                       this.path,
                                       "org.mpris.MediaPlayer2.Player",
                                       "Seeked",
                                       this.handleSeeked
                                       ));

            eventSubscriptions.Add(connection.RegisterSignalHandler(
                                       this.path,
                                       "org.freedesktop.DBus.Properties",
                                       "PropertiesChanged",
                                       this.handleProperties
                                       ));
            PropertyInitializationFinished = global::System.Threading.Tasks.Task.Run(initProperties);
        }
        public async global::System.Threading.Tasks.Task SetPositionAsync(global::Dbus.ObjectPath track, global::System.Int64 startPosition)
        {
            var sendBody  = global::Dbus.Encoder.StartNew();
            var sendIndex = 0;

            global::Dbus.Encoder.Add(sendBody, ref sendIndex, track);
            global::Dbus.Encoder.Add(sendBody, ref sendIndex, startPosition);

            var receivedMessage = await connection.SendMethodCall(
                this.path,
                "org.mpris.MediaPlayer2.Player",
                "SetPosition",
                this.destination,
                sendBody,
                "ox"
                );

            assertSignature(receivedMessage.Signature, "");
            return;
        }
        public async global::System.Threading.Tasks.Task RegisterAdvertisementAsync(global::Dbus.ObjectPath advertisement, global::System.Collections.Generic.IDictionary <global::System.String, global::System.Object> options)
        {
            var sendBody  = global::Dbus.Encoder.StartNew();
            var sendIndex = 0;

            global::Dbus.Encoder.Add(sendBody, ref sendIndex, advertisement);
            global::Dbus.Encoder.Add(sendBody, ref sendIndex, options, global::Dbus.Encoder.Add, global::Dbus.Encoder.AddVariant);

            var receivedMessage = await connection.SendMethodCall(
                this.path,
                "org.bluez.LEAdvertisingManager1",
                "RegisterAdvertisement",
                this.destination,
                sendBody,
                "oa{sv}"
                ).ConfigureAwait(false);

            receivedMessage.Signature.AssertEqual("");
            return;
        }
 public static global::Dbus.Sample.IOrgMprisMediaPlayer2Player Factory(global::Dbus.Connection connection, global::Dbus.ObjectPath path, string destination)
 {
     return(new OrgMprisMediaPlayer2Player(connection, path, destination));
 }
 public static global::Dbus.IOrgFreedesktopDbus Factory(global::Dbus.Connection connection, global::Dbus.ObjectPath path, string destination)
 {
     return(new OrgFreedesktopDbus(connection, path, destination));
 }
 private OrgFreedesktopUpower(global::Dbus.Connection connection, global::Dbus.ObjectPath path, string destination)
 {
     this.connection  = connection;
     this.path        = path ?? "/org/freedesktop/UPower";
     this.destination = destination ?? "org.freedesktop.UPower";
 }
 public static SampleObject_Proxy Factory(global::Dbus.Connection connection, Dbus.Sample.SampleObject target, global::Dbus.ObjectPath path)
 {
     return(new SampleObject_Proxy(connection, target, path));
 }
 private SampleObject_Proxy(global::Dbus.Connection connection, global::Dbus.Sample.SampleObject target, global::Dbus.ObjectPath path)
 {
     this.connection = connection;
     this.target     = target;
     registration    = connection.RegisterObjectProxy(
         path ?? "/org/dbuscore/sample",
         "org.dbuscore.sample.interface",
         this.handleMethodCall
         );
 }
        public async global::System.Threading.Tasks.Task UnregisterAdvertisementAsync(global::Dbus.ObjectPath advertisement)
        {
            var sendBody  = global::Dbus.Encoder.StartNew();
            var sendIndex = 0;

            global::Dbus.Encoder.Add(sendBody, ref sendIndex, advertisement);

            var receivedMessage = await connection.SendMethodCall(
                this.path,
                "org.bluez.LEAdvertisingManager1",
                "UnregisterAdvertisement",
                this.destination,
                sendBody,
                "o"
                ).ConfigureAwait(false);

            receivedMessage.Signature.AssertEqual("");
            return;
        }
 public static global::Reproduction.IOrgBluezLEAdvertisingManager1 Factory(global::Dbus.Connection connection, global::Dbus.ObjectPath path, string destination)
 {
     return(new IOrgBluezLEAdvertisingManager1_Implementation(connection, path, destination));
 }
 private IOrgBluezLEAdvertisingManager1_Implementation(global::Dbus.Connection connection, global::Dbus.ObjectPath path, string destination)
 {
     this.connection  = connection;
     this.path        = path ?? "";
     this.destination = destination ?? "org.bluez";
 }
 public static IOrgBluezLEAdvertisement1_Proxy Factory(global::Dbus.Connection connection, Reproduction.IOrgBluezLEAdvertisement1 target, global::Dbus.ObjectPath path)
 {
     return(new IOrgBluezLEAdvertisement1_Proxy(connection, target, path));
 }
 public static global::Dbus.IOrgFreedesktopDbusObjectManager Factory(global::Dbus.Connection connection, global::Dbus.ObjectPath path, string destination)
 {
     return(new IOrgFreedesktopDbusObjectManager_Implementation(connection, path, destination));
 }