From b14b8cbfdce30862a38b06b1934e00d5c050d632 Mon Sep 17 00:00:00 2001 From: Rachel Kang Date: Mon, 20 Sep 2021 09:40:14 -0400 Subject: [PATCH] Update based on feedback --- src/Intents/INPerson.cs | 46 ++++++++++++++++++++--------------------- src/intents.cs | 4 ++-- 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/src/Intents/INPerson.cs b/src/Intents/INPerson.cs index 5fad0be5cc31..ec2e6d3890cf 100644 --- a/src/Intents/INPerson.cs +++ b/src/Intents/INPerson.cs @@ -20,11 +20,11 @@ public partial class INPerson #else [SupportedOSPlatform ("ios15.0")] [SupportedOSPlatform ("macos12.0")] -#endif //!NET - public enum INPersonType { - Me = 0, - ContactSuggestion = 1, - } + #endif //!NET + public enum INPersonType { + Me = 0, + ContactSuggestion = 1, + } #if !NET [Introduced (PlatformName.iOS, 15,0)] @@ -34,10 +34,10 @@ public enum INPersonType { [SupportedOSPlatform ("ios15.0")] [SupportedOSPlatform ("macos12.0")] #endif //!NET - public INPerson (INPersonHandle personHandle, NSPersonNameComponents? nameComponents, string? displayName, INImage? image, string? contactIdentifier, string? customIdentifier, bool isMe, INPersonSuggestionType suggestionType) : - this (personHandle, nameComponents, displayName, image, contactIdentifier, customIdentifier, isMe, suggestionType, INPersonType.Me) - { - } + public INPerson (INPersonHandle personHandle, NSPersonNameComponents? nameComponents, string? displayName, INImage? image, string? contactIdentifier, string? customIdentifier, bool isMe, INPersonSuggestionType suggestionType) : + this (personHandle, nameComponents, displayName, image, contactIdentifier, customIdentifier, isMe, suggestionType, INPersonType.Me) + { + } #if !NET [Introduced (PlatformName.iOS, 15,0)] @@ -48,20 +48,20 @@ public INPerson (INPersonHandle personHandle, NSPersonNameComponents? nameCompon [SupportedOSPlatform ("macos12.0")] #endif //!NET public INPerson (INPersonHandle personHandle, NSPersonNameComponents? nameComponents, string? displayName, INImage? image, string? contactIdentifier, string? customIdentifier, bool isMe, INPersonSuggestionType suggestionType, INPersonType personType) : base (NSObjectFlag.Empty) - { - switch (personType) { - case INPersonType.Me: - InitializeHandle (InitWithMe (personHandle, nameComponents, displayName, image, contactIdentifier, customIdentifier, isMe, suggestionType), - "initWithPersonHandle:nameComponents:displayName:image:contactIdentifier:customIdentifier:isMe:suggestionType:"); - break; - case INPersonType.ContactSuggestion: - InitializeHandle (InitWithContactSuggestion (personHandle, nameComponents, displayName, image, contactIdentifier, customIdentifier, isMe, suggestionType), - "initWithPersonHandle:nameComponents:displayName:image:contactIdentifier:customIdentifier:isContactSuggestion:suggestionType:"); - break; - default: - throw new ArgumentException (nameof (personType)); - } - } + { + switch (personType) { + case INPersonType.Me: + InitializeHandle (InitWithMe (personHandle, nameComponents, displayName, image, contactIdentifier, customIdentifier, isMe, suggestionType), + "initWithPersonHandle:nameComponents:displayName:image:contactIdentifier:customIdentifier:isMe:suggestionType:"); + break; + case INPersonType.ContactSuggestion: + InitializeHandle (InitWithContactSuggestion (personHandle, nameComponents, displayName, image, contactIdentifier, customIdentifier, isMe, suggestionType), + "initWithPersonHandle:nameComponents:displayName:image:contactIdentifier:customIdentifier:isContactSuggestion:suggestionType:"); + break; + default: + throw new ArgumentException (nameof (personType)); + } + } } #endif // !TVOS } diff --git a/src/intents.cs b/src/intents.cs index 63942da22838..cecff7a06af9 100644 --- a/src/intents.cs +++ b/src/intents.cs @@ -7516,9 +7516,9 @@ interface INStringResolutionResult { [Deprecated (PlatformName.iOS, 15, 0)] [Deprecated (PlatformName.MacCatalyst, 15, 0)] + [Deprecated (PlatformName.MacOSX, 12, 0)] + [Deprecated (PlatformName.WatchOS, 8, 0)] [iOS (10, 0)] - [NoWatch] // it says it's now NoWatch, but not deprecated? (there was previous watch availability) - [NoMac] // it says it's now NoMac, but not deprecated? (there was previous mac availability) [NoTV] [DisableDefaultCtor] [BaseType (typeof (INIntentResolutionResult))]