internal AboutObjectDescription(MsgArg arg) : base(AboutObjectDescription.alljoyn_aboutobjectdescription_create()) { var status = AboutObjectDescription.alljoyn_aboutobjectdescription_createfrommsgarg(Handle, arg.Handle); if (status != QStatus.ER_OK) { throw new AllJoynException(status); } }
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); }