internal AboutAnnouncedEventArgs(string busName, UInt16 version, UInt16 port, IntPtr objectDescriptionArg, IntPtr aboutDataArg) { BusName = busName; Version = version; Port = port; IntPtr handle = AboutObjectDescription.alljoyn_aboutobjectdescription_create(); var status = AboutObjectDescription.alljoyn_aboutobjectdescription_createfrommsgarg(handle, objectDescriptionArg); if (status != 0) { throw new AllJoynException(status); } ObjectDescription = new AboutObjectDescription(handle); handle = AboutData.alljoyn_aboutdata_create_full(aboutDataArg, "en"); AboutData = new AboutData(handle); }
internal AboutData(MsgArg arg, string defaultLanguage) : base(AboutData.alljoyn_aboutdata_create(defaultLanguage)) { var status = AboutData.alljoyn_aboutdata_createfrommsgarg(Handle, arg.Handle, null); AllJoynException.CheckStatus(status); }
// #if WINDOWS_UWP // public AboutObj(Windows.Devices.AllJoyn.AllJoynBusAttachment bus, bool announce) : // base(alljoyn_aboutobj_create(BusAttachment.GetHandle(bus), announce ? alljoyn_about_announceflag.ANNOUNCED : alljoyn_about_announceflag.UNANNOUNCED)) // { } // #endif public void Announce(ushort sessionPort, AboutData aboutData) { alljoyn_aboutobj_announce(Handle, sessionPort, aboutData.Handle); }