Skip to content

Instantly share code, notes, and snippets.

@vs-mobiletools-engineering-service2
Created August 24, 2022 22:07
Show Gist options
  • Save vs-mobiletools-engineering-service2/82b1d4d2d63e536d4d36fc9e7faf0563 to your computer and use it in GitHub Desktop.
Save vs-mobiletools-engineering-service2/82b1d4d2d63e536d4d36fc9e7faf0563 to your computer and use it in GitHub Desktop.
generator-diff/generator.diff
diff --git a/old/dotnet/ios/generated-sources/IdentityLookup/ILMessageFilterCapabilitiesQueryHandling.g.cs b/new/dotnet/ios/generated-sources/IdentityLookup/ILMessageFilterCapabilitiesQueryHandling.g.cs
index 227cd0d..3715129 100644
--- a/old/dotnet/ios/generated-sources/IdentityLookup/ILMessageFilterCapabilitiesQueryHandling.g.cs
+++ b/new/dotnet/ios/generated-sources/IdentityLookup/ILMessageFilterCapabilitiesQueryHandling.g.cs
@@ -66,21 +66,6 @@ namespace IdentityLookup {
[Preserve (Conditional = true)]
unsafe void HandleQueryRequest (ILMessageFilterCapabilitiesQueryRequest capabilitiesQueryRequest, ILMessageFilterExtensionContext context, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDActionArity1V67))]global::System.Action<ILMessageFilterCapabilitiesQueryResponse> completion);
}
- public static partial class ILMessageFilterCapabilitiesQueryHandling_Extensions {
- [UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
- [SupportedOSPlatform ("maccatalyst16.0")]
- [SupportedOSPlatform ("ios16.0")]
- [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
- public unsafe static Task<ILMessageFilterCapabilitiesQueryResponse> HandleQueryRequestAsync (this IILMessageFilterCapabilitiesQueryHandling This, ILMessageFilterCapabilitiesQueryRequest capabilitiesQueryRequest, ILMessageFilterExtensionContext context)
- {
- var tcs = new TaskCompletionSource<ILMessageFilterCapabilitiesQueryResponse> ();
- This.HandleQueryRequest(capabilitiesQueryRequest, context, (obj_) => {
- tcs.SetResult (obj_!);
- });
- return tcs.Task;
- }
- }
internal sealed class ILMessageFilterCapabilitiesQueryHandlingWrapper : BaseWrapper, IILMessageFilterCapabilitiesQueryHandling {
[Preserve (Conditional = true)]
public ILMessageFilterCapabilitiesQueryHandlingWrapper (NativeHandle handle, bool owns)
diff --git a/old/dotnet/ios/generated-sources/IdentityLookup/ILMessageFilterCapabilitiesQueryResponse.g.cs b/new/dotnet/ios/generated-sources/IdentityLookup/ILMessageFilterCapabilitiesQueryResponse.g.cs
index 6ec9e07..7cb4b6c 100644
--- a/old/dotnet/ios/generated-sources/IdentityLookup/ILMessageFilterCapabilitiesQueryResponse.g.cs
+++ b/new/dotnet/ios/generated-sources/IdentityLookup/ILMessageFilterCapabilitiesQueryResponse.g.cs
@@ -129,7 +129,8 @@ namespace IdentityLookup {
[UnsupportedOSPlatform ("macos")]
[SupportedOSPlatform ("maccatalyst16.0")]
[SupportedOSPlatform ("ios16.0")]
- public virtual NSNumber[] PromotionalSubActions {
+ [BindAs (typeof (ILMessageFilterSubAction[]), OriginalType = typeof (NSNumber[]))]
+ public virtual global::IdentityLookup.ILMessageFilterSubAction[] PromotionalSubActions {
[Export ("promotionalSubActions", ArgumentSemantic.Copy)]
[UnsupportedOSPlatform ("tvos")]
[UnsupportedOSPlatform ("macos")]
@@ -139,11 +140,21 @@ namespace IdentityLookup {
#if ARCH_32
throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
#else
- NSNumber[]? ret;
+ global::IdentityLookup.ILMessageFilterSubAction[] ret;
if (IsDirectBinding) {
- ret = CFArray.ArrayFromHandle<NSNumber>(global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("promotionalSubActions")))!;
+ NativeHandle retvalarrtmp;
+ ret = ((retvalarrtmp = global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("promotionalSubActions"))) == IntPtr.Zero ? null! : (NSArray.ArrayFromHandleFunc <global::IdentityLookup.ILMessageFilterSubAction> (retvalarrtmp, ptr => {
+ using (var num = Runtime.GetNSObject<NSNumber> (ptr)!) {
+ return (global::IdentityLookup.ILMessageFilterSubAction) num.Int32Value;
+ }
+ })));
} else {
- ret = CFArray.ArrayFromHandle<NSNumber>(global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("promotionalSubActions")))!;
+ NativeHandle retvalarrtmp;
+ ret = ((retvalarrtmp = global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("promotionalSubActions"))) == IntPtr.Zero ? null! : (NSArray.ArrayFromHandleFunc <global::IdentityLookup.ILMessageFilterSubAction> (retvalarrtmp, ptr => {
+ using (var num = Runtime.GetNSObject<NSNumber> (ptr)!) {
+ return (global::IdentityLookup.ILMessageFilterSubAction) num.Int32Value;
+ }
+ })));
}
return ret!;
#endif
@@ -159,13 +170,13 @@ namespace IdentityLookup {
#else
if (value is null)
ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (value));
- var nsa_value = NSArray.FromNSObjects (value);
+ var nsb_PromotionalSubActions = NSArray.FromNSObjects (o => new NSNumber ((int)o), value);
if (IsDirectBinding) {
- global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("setPromotionalSubActions:"), nsa_value.Handle);
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("setPromotionalSubActions:"), nsb_PromotionalSubActions.GetHandle ());
} else {
- global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("setPromotionalSubActions:"), nsa_value.Handle);
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("setPromotionalSubActions:"), nsb_PromotionalSubActions.GetHandle ());
}
- nsa_value.Dispose ();
+ nsb_PromotionalSubActions?.Dispose ();
#endif
}
}
@@ -174,7 +185,8 @@ namespace IdentityLookup {
[UnsupportedOSPlatform ("macos")]
[SupportedOSPlatform ("maccatalyst16.0")]
[SupportedOSPlatform ("ios16.0")]
- public virtual NSNumber[] TransactionalSubActions {
+ [BindAs (typeof (ILMessageFilterSubAction[]), OriginalType = typeof (NSNumber[]))]
+ public virtual global::IdentityLookup.ILMessageFilterSubAction[] TransactionalSubActions {
[Export ("transactionalSubActions", ArgumentSemantic.Copy)]
[UnsupportedOSPlatform ("tvos")]
[UnsupportedOSPlatform ("macos")]
@@ -184,11 +196,21 @@ namespace IdentityLookup {
#if ARCH_32
throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
#else
- NSNumber[]? ret;
+ global::IdentityLookup.ILMessageFilterSubAction[] ret;
if (IsDirectBinding) {
- ret = CFArray.ArrayFromHandle<NSNumber>(global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("transactionalSubActions")))!;
+ NativeHandle retvalarrtmp;
+ ret = ((retvalarrtmp = global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("transactionalSubActions"))) == IntPtr.Zero ? null! : (NSArray.ArrayFromHandleFunc <global::IdentityLookup.ILMessageFilterSubAction> (retvalarrtmp, ptr => {
+ using (var num = Runtime.GetNSObject<NSNumber> (ptr)!) {
+ return (global::IdentityLookup.ILMessageFilterSubAction) num.Int32Value;
+ }
+ })));
} else {
- ret = CFArray.ArrayFromHandle<NSNumber>(global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("transactionalSubActions")))!;
+ NativeHandle retvalarrtmp;
+ ret = ((retvalarrtmp = global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("transactionalSubActions"))) == IntPtr.Zero ? null! : (NSArray.ArrayFromHandleFunc <global::IdentityLookup.ILMessageFilterSubAction> (retvalarrtmp, ptr => {
+ using (var num = Runtime.GetNSObject<NSNumber> (ptr)!) {
+ return (global::IdentityLookup.ILMessageFilterSubAction) num.Int32Value;
+ }
+ })));
}
return ret!;
#endif
@@ -204,13 +226,13 @@ namespace IdentityLookup {
#else
if (value is null)
ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (value));
- var nsa_value = NSArray.FromNSObjects (value);
+ var nsb_TransactionalSubActions = NSArray.FromNSObjects (o => new NSNumber ((int)o), value);
if (IsDirectBinding) {
- global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("setTransactionalSubActions:"), nsa_value.Handle);
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("setTransactionalSubActions:"), nsb_TransactionalSubActions.GetHandle ());
} else {
- global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("setTransactionalSubActions:"), nsa_value.Handle);
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("setTransactionalSubActions:"), nsb_TransactionalSubActions.GetHandle ());
}
- nsa_value.Dispose ();
+ nsb_TransactionalSubActions?.Dispose ();
#endif
}
}
diff --git a/old/dotnet/ios/generated-sources/IdentityLookup/ILMessageFilterQueryRequest.g.cs b/new/dotnet/ios/generated-sources/IdentityLookup/ILMessageFilterQueryRequest.g.cs
index b9818a5..e5ab72c 100644
--- a/old/dotnet/ios/generated-sources/IdentityLookup/ILMessageFilterQueryRequest.g.cs
+++ b/new/dotnet/ios/generated-sources/IdentityLookup/ILMessageFilterQueryRequest.g.cs
@@ -136,7 +136,7 @@ namespace IdentityLookup {
[UnsupportedOSPlatform ("macos")]
[SupportedOSPlatform ("maccatalyst16.0")]
[SupportedOSPlatform ("ios16.0")]
- public virtual string? ReceiverISOCountryCode {
+ public virtual string? ReceiverIsoCountryCode {
[Export ("receiverISOCountryCode")]
[UnsupportedOSPlatform ("macos")]
[UnsupportedOSPlatform ("tvos")]
diff --git a/old/dotnet/maccatalyst/generated-sources/IdentityLookup/ILMessageFilterCapabilitiesQueryHandling.g.cs b/new/dotnet/maccatalyst/generated-sources/IdentityLookup/ILMessageFilterCapabilitiesQueryHandling.g.cs
index 01457d0..4a3048f 100644
--- a/old/dotnet/maccatalyst/generated-sources/IdentityLookup/ILMessageFilterCapabilitiesQueryHandling.g.cs
+++ b/new/dotnet/maccatalyst/generated-sources/IdentityLookup/ILMessageFilterCapabilitiesQueryHandling.g.cs
@@ -66,21 +66,6 @@ namespace IdentityLookup {
[Preserve (Conditional = true)]
unsafe void HandleQueryRequest (ILMessageFilterCapabilitiesQueryRequest capabilitiesQueryRequest, ILMessageFilterExtensionContext context, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDActionArity1V53))]global::System.Action<ILMessageFilterCapabilitiesQueryResponse> completion);
}
- public static partial class ILMessageFilterCapabilitiesQueryHandling_Extensions {
- [UnsupportedOSPlatform ("tvos")]
- [UnsupportedOSPlatform ("macos")]
- [SupportedOSPlatform ("maccatalyst16.0")]
- [SupportedOSPlatform ("ios16.0")]
- [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
- public unsafe static Task<ILMessageFilterCapabilitiesQueryResponse> HandleQueryRequestAsync (this IILMessageFilterCapabilitiesQueryHandling This, ILMessageFilterCapabilitiesQueryRequest capabilitiesQueryRequest, ILMessageFilterExtensionContext context)
- {
- var tcs = new TaskCompletionSource<ILMessageFilterCapabilitiesQueryResponse> ();
- This.HandleQueryRequest(capabilitiesQueryRequest, context, (obj_) => {
- tcs.SetResult (obj_!);
- });
- return tcs.Task;
- }
- }
internal sealed class ILMessageFilterCapabilitiesQueryHandlingWrapper : BaseWrapper, IILMessageFilterCapabilitiesQueryHandling {
[Preserve (Conditional = true)]
public ILMessageFilterCapabilitiesQueryHandlingWrapper (NativeHandle handle, bool owns)
diff --git a/old/dotnet/maccatalyst/generated-sources/IdentityLookup/ILMessageFilterCapabilitiesQueryResponse.g.cs b/new/dotnet/maccatalyst/generated-sources/IdentityLookup/ILMessageFilterCapabilitiesQueryResponse.g.cs
index 0534810..efa5049 100644
--- a/old/dotnet/maccatalyst/generated-sources/IdentityLookup/ILMessageFilterCapabilitiesQueryResponse.g.cs
+++ b/new/dotnet/maccatalyst/generated-sources/IdentityLookup/ILMessageFilterCapabilitiesQueryResponse.g.cs
@@ -115,18 +115,29 @@ namespace IdentityLookup {
[UnsupportedOSPlatform ("macos")]
[SupportedOSPlatform ("maccatalyst16.0")]
[SupportedOSPlatform ("ios16.0")]
- public virtual NSNumber[] PromotionalSubActions {
+ [BindAs (typeof (ILMessageFilterSubAction[]), OriginalType = typeof (NSNumber[]))]
+ public virtual global::IdentityLookup.ILMessageFilterSubAction[] PromotionalSubActions {
[Export ("promotionalSubActions", ArgumentSemantic.Copy)]
[UnsupportedOSPlatform ("tvos")]
[UnsupportedOSPlatform ("macos")]
[SupportedOSPlatform ("maccatalyst16.0")]
[SupportedOSPlatform ("ios16.0")]
get {
- NSNumber[]? ret;
+ global::IdentityLookup.ILMessageFilterSubAction[] ret;
if (IsDirectBinding) {
- ret = CFArray.ArrayFromHandle<NSNumber>(global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("promotionalSubActions")))!;
+ NativeHandle retvalarrtmp;
+ ret = ((retvalarrtmp = global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("promotionalSubActions"))) == IntPtr.Zero ? null! : (NSArray.ArrayFromHandleFunc <global::IdentityLookup.ILMessageFilterSubAction> (retvalarrtmp, ptr => {
+ using (var num = Runtime.GetNSObject<NSNumber> (ptr)!) {
+ return (global::IdentityLookup.ILMessageFilterSubAction) num.Int32Value;
+ }
+ })));
} else {
- ret = CFArray.ArrayFromHandle<NSNumber>(global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("promotionalSubActions")))!;
+ NativeHandle retvalarrtmp;
+ ret = ((retvalarrtmp = global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("promotionalSubActions"))) == IntPtr.Zero ? null! : (NSArray.ArrayFromHandleFunc <global::IdentityLookup.ILMessageFilterSubAction> (retvalarrtmp, ptr => {
+ using (var num = Runtime.GetNSObject<NSNumber> (ptr)!) {
+ return (global::IdentityLookup.ILMessageFilterSubAction) num.Int32Value;
+ }
+ })));
}
return ret!;
}
@@ -138,13 +149,13 @@ namespace IdentityLookup {
set {
if (value is null)
ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (value));
- var nsa_value = NSArray.FromNSObjects (value);
+ var nsb_PromotionalSubActions = NSArray.FromNSObjects (o => new NSNumber ((int)o), value);
if (IsDirectBinding) {
- global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("setPromotionalSubActions:"), nsa_value.Handle);
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("setPromotionalSubActions:"), nsb_PromotionalSubActions.GetHandle ());
} else {
- global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("setPromotionalSubActions:"), nsa_value.Handle);
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("setPromotionalSubActions:"), nsb_PromotionalSubActions.GetHandle ());
}
- nsa_value.Dispose ();
+ nsb_PromotionalSubActions?.Dispose ();
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
@@ -152,18 +163,29 @@ namespace IdentityLookup {
[UnsupportedOSPlatform ("macos")]
[SupportedOSPlatform ("maccatalyst16.0")]
[SupportedOSPlatform ("ios16.0")]
- public virtual NSNumber[] TransactionalSubActions {
+ [BindAs (typeof (ILMessageFilterSubAction[]), OriginalType = typeof (NSNumber[]))]
+ public virtual global::IdentityLookup.ILMessageFilterSubAction[] TransactionalSubActions {
[Export ("transactionalSubActions", ArgumentSemantic.Copy)]
[UnsupportedOSPlatform ("tvos")]
[UnsupportedOSPlatform ("macos")]
[SupportedOSPlatform ("maccatalyst16.0")]
[SupportedOSPlatform ("ios16.0")]
get {
- NSNumber[]? ret;
+ global::IdentityLookup.ILMessageFilterSubAction[] ret;
if (IsDirectBinding) {
- ret = CFArray.ArrayFromHandle<NSNumber>(global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("transactionalSubActions")))!;
+ NativeHandle retvalarrtmp;
+ ret = ((retvalarrtmp = global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("transactionalSubActions"))) == IntPtr.Zero ? null! : (NSArray.ArrayFromHandleFunc <global::IdentityLookup.ILMessageFilterSubAction> (retvalarrtmp, ptr => {
+ using (var num = Runtime.GetNSObject<NSNumber> (ptr)!) {
+ return (global::IdentityLookup.ILMessageFilterSubAction) num.Int32Value;
+ }
+ })));
} else {
- ret = CFArray.ArrayFromHandle<NSNumber>(global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("transactionalSubActions")))!;
+ NativeHandle retvalarrtmp;
+ ret = ((retvalarrtmp = global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("transactionalSubActions"))) == IntPtr.Zero ? null! : (NSArray.ArrayFromHandleFunc <global::IdentityLookup.ILMessageFilterSubAction> (retvalarrtmp, ptr => {
+ using (var num = Runtime.GetNSObject<NSNumber> (ptr)!) {
+ return (global::IdentityLookup.ILMessageFilterSubAction) num.Int32Value;
+ }
+ })));
}
return ret!;
}
@@ -175,13 +197,13 @@ namespace IdentityLookup {
set {
if (value is null)
ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (value));
- var nsa_value = NSArray.FromNSObjects (value);
+ var nsb_TransactionalSubActions = NSArray.FromNSObjects (o => new NSNumber ((int)o), value);
if (IsDirectBinding) {
- global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("setTransactionalSubActions:"), nsa_value.Handle);
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("setTransactionalSubActions:"), nsb_TransactionalSubActions.GetHandle ());
} else {
- global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("setTransactionalSubActions:"), nsa_value.Handle);
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("setTransactionalSubActions:"), nsb_TransactionalSubActions.GetHandle ());
}
- nsa_value.Dispose ();
+ nsb_TransactionalSubActions?.Dispose ();
}
}
} /* class ILMessageFilterCapabilitiesQueryResponse */
diff --git a/old/dotnet/maccatalyst/generated-sources/IdentityLookup/ILMessageFilterQueryRequest.g.cs b/new/dotnet/maccatalyst/generated-sources/IdentityLookup/ILMessageFilterQueryRequest.g.cs
index f56e5ea..9b30faa 100644
--- a/old/dotnet/maccatalyst/generated-sources/IdentityLookup/ILMessageFilterQueryRequest.g.cs
+++ b/new/dotnet/maccatalyst/generated-sources/IdentityLookup/ILMessageFilterQueryRequest.g.cs
@@ -122,7 +122,7 @@ namespace IdentityLookup {
[UnsupportedOSPlatform ("macos")]
[SupportedOSPlatform ("maccatalyst16.0")]
[SupportedOSPlatform ("ios16.0")]
- public virtual string? ReceiverISOCountryCode {
+ public virtual string? ReceiverIsoCountryCode {
[Export ("receiverISOCountryCode")]
[UnsupportedOSPlatform ("macos")]
[UnsupportedOSPlatform ("tvos")]
diff --git a/old/ios/native/IdentityLookup/ILMessageFilterCapabilitiesQueryHandling.g.cs b/new/ios/native/IdentityLookup/ILMessageFilterCapabilitiesQueryHandling.g.cs
index d5957df..8f00b32 100644
--- a/old/ios/native/IdentityLookup/ILMessageFilterCapabilitiesQueryHandling.g.cs
+++ b/new/ios/native/IdentityLookup/ILMessageFilterCapabilitiesQueryHandling.g.cs
@@ -62,17 +62,6 @@ namespace IdentityLookup {
[Preserve (Conditional = true)]
unsafe void HandleQueryRequest (ILMessageFilterCapabilitiesQueryRequest capabilitiesQueryRequest, ILMessageFilterExtensionContext context, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDActionArity1V66))]global::System.Action<ILMessageFilterCapabilitiesQueryResponse> completion);
}
- public static partial class ILMessageFilterCapabilitiesQueryHandling_Extensions {
- [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
- public unsafe static Task<ILMessageFilterCapabilitiesQueryResponse> HandleQueryRequestAsync (this IILMessageFilterCapabilitiesQueryHandling This, ILMessageFilterCapabilitiesQueryRequest capabilitiesQueryRequest, ILMessageFilterExtensionContext context)
- {
- var tcs = new TaskCompletionSource<ILMessageFilterCapabilitiesQueryResponse> ();
- This.HandleQueryRequest(capabilitiesQueryRequest, context, (obj_) => {
- tcs.SetResult (obj_!);
- });
- return tcs.Task;
- }
- }
internal sealed class ILMessageFilterCapabilitiesQueryHandlingWrapper : BaseWrapper, IILMessageFilterCapabilitiesQueryHandling {
[Preserve (Conditional = true)]
public ILMessageFilterCapabilitiesQueryHandlingWrapper (IntPtr handle, bool owns)
diff --git a/old/ios/native/IdentityLookup/ILMessageFilterCapabilitiesQueryResponse.g.cs b/new/ios/native/IdentityLookup/ILMessageFilterCapabilitiesQueryResponse.g.cs
index abd77e2..fcfbb1f 100644
--- a/old/ios/native/IdentityLookup/ILMessageFilterCapabilitiesQueryResponse.g.cs
+++ b/new/ios/native/IdentityLookup/ILMessageFilterCapabilitiesQueryResponse.g.cs
@@ -121,17 +121,28 @@ namespace IdentityLookup {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
- public virtual NSNumber[] PromotionalSubActions {
+ [BindAs (typeof (ILMessageFilterSubAction[]), OriginalType = typeof (NSNumber[]))]
+ public virtual global::IdentityLookup.ILMessageFilterSubAction[] PromotionalSubActions {
[Export ("promotionalSubActions", ArgumentSemantic.Copy)]
get {
#if ARCH_32
throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
#else
- NSNumber[]? ret;
+ global::IdentityLookup.ILMessageFilterSubAction[] ret;
if (IsDirectBinding) {
- ret = CFArray.ArrayFromHandle<NSNumber>(global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("promotionalSubActions")))!;
+ IntPtr retvalarrtmp;
+ ret = ((retvalarrtmp = global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("promotionalSubActions"))) == IntPtr.Zero ? null! : (NSArray.ArrayFromHandleFunc <global::IdentityLookup.ILMessageFilterSubAction> (retvalarrtmp, ptr => {
+ using (var num = Runtime.GetNSObject<NSNumber> (ptr)!) {
+ return (global::IdentityLookup.ILMessageFilterSubAction) num.Int32Value;
+ }
+ })));
} else {
- ret = CFArray.ArrayFromHandle<NSNumber>(global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("promotionalSubActions")))!;
+ IntPtr retvalarrtmp;
+ ret = ((retvalarrtmp = global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("promotionalSubActions"))) == IntPtr.Zero ? null! : (NSArray.ArrayFromHandleFunc <global::IdentityLookup.ILMessageFilterSubAction> (retvalarrtmp, ptr => {
+ using (var num = Runtime.GetNSObject<NSNumber> (ptr)!) {
+ return (global::IdentityLookup.ILMessageFilterSubAction) num.Int32Value;
+ }
+ })));
}
return ret!;
#endif
@@ -143,28 +154,39 @@ namespace IdentityLookup {
#else
if (value is null)
ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (value));
- var nsa_value = NSArray.FromNSObjects (value);
+ var nsb_PromotionalSubActions = NSArray.FromNSObjects (o => new NSNumber ((int)o), value);
if (IsDirectBinding) {
- global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("setPromotionalSubActions:"), nsa_value.Handle);
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("setPromotionalSubActions:"), nsb_PromotionalSubActions.GetHandle ());
} else {
- global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("setPromotionalSubActions:"), nsa_value.Handle);
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("setPromotionalSubActions:"), nsb_PromotionalSubActions.GetHandle ());
}
- nsa_value.Dispose ();
+ nsb_PromotionalSubActions?.Dispose ();
#endif
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
- public virtual NSNumber[] TransactionalSubActions {
+ [BindAs (typeof (ILMessageFilterSubAction[]), OriginalType = typeof (NSNumber[]))]
+ public virtual global::IdentityLookup.ILMessageFilterSubAction[] TransactionalSubActions {
[Export ("transactionalSubActions", ArgumentSemantic.Copy)]
get {
#if ARCH_32
throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
#else
- NSNumber[]? ret;
+ global::IdentityLookup.ILMessageFilterSubAction[] ret;
if (IsDirectBinding) {
- ret = CFArray.ArrayFromHandle<NSNumber>(global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("transactionalSubActions")))!;
+ IntPtr retvalarrtmp;
+ ret = ((retvalarrtmp = global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("transactionalSubActions"))) == IntPtr.Zero ? null! : (NSArray.ArrayFromHandleFunc <global::IdentityLookup.ILMessageFilterSubAction> (retvalarrtmp, ptr => {
+ using (var num = Runtime.GetNSObject<NSNumber> (ptr)!) {
+ return (global::IdentityLookup.ILMessageFilterSubAction) num.Int32Value;
+ }
+ })));
} else {
- ret = CFArray.ArrayFromHandle<NSNumber>(global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("transactionalSubActions")))!;
+ IntPtr retvalarrtmp;
+ ret = ((retvalarrtmp = global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("transactionalSubActions"))) == IntPtr.Zero ? null! : (NSArray.ArrayFromHandleFunc <global::IdentityLookup.ILMessageFilterSubAction> (retvalarrtmp, ptr => {
+ using (var num = Runtime.GetNSObject<NSNumber> (ptr)!) {
+ return (global::IdentityLookup.ILMessageFilterSubAction) num.Int32Value;
+ }
+ })));
}
return ret!;
#endif
@@ -176,13 +198,13 @@ namespace IdentityLookup {
#else
if (value is null)
ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (value));
- var nsa_value = NSArray.FromNSObjects (value);
+ var nsb_TransactionalSubActions = NSArray.FromNSObjects (o => new NSNumber ((int)o), value);
if (IsDirectBinding) {
- global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("setTransactionalSubActions:"), nsa_value.Handle);
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("setTransactionalSubActions:"), nsb_TransactionalSubActions.GetHandle ());
} else {
- global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("setTransactionalSubActions:"), nsa_value.Handle);
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("setTransactionalSubActions:"), nsb_TransactionalSubActions.GetHandle ());
}
- nsa_value.Dispose ();
+ nsb_TransactionalSubActions?.Dispose ();
#endif
}
}
diff --git a/old/ios/native/IdentityLookup/ILMessageFilterQueryRequest.g.cs b/new/ios/native/IdentityLookup/ILMessageFilterQueryRequest.g.cs
index 015c345..ab03ecf 100644
--- a/old/ios/native/IdentityLookup/ILMessageFilterQueryRequest.g.cs
+++ b/new/ios/native/IdentityLookup/ILMessageFilterQueryRequest.g.cs
@@ -121,7 +121,7 @@ namespace IdentityLookup {
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
- public virtual string? ReceiverISOCountryCode {
+ public virtual string? ReceiverIsoCountryCode {
[Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
[Export ("receiverISOCountryCode")]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment