[videosubscriberaccount] Hide [Field]s by providing better alternative if possible

Internalize VSErrorInfoKeys by adding a [StrongDictionary] on it

	NSError err = ...;
	var new VSErrorInfo (err.UserInfo);
	Console.WriteLine (SamlResponse);

Internalize VSCheckAccessOptionKeys as it already has a [StrongDictionary]
This commit is contained in:
Sebastien Pouliot 2016-09-02 18:34:56 -04:00
Родитель 3dbde10fac
Коммит 391aed7a70
1 изменённых файлов: 19 добавлений и 4 удалений

Просмотреть файл

@ -43,16 +43,30 @@ namespace XamCore.VideoSubscriberAccount {
[Introduced (PlatformName.TvOS, 10, 0)] [Introduced (PlatformName.TvOS, 10, 0)]
[Unavailable (PlatformName.WatchOS)] [Unavailable (PlatformName.WatchOS)]
[Static] [Static]
interface VSErrorInfoKey { [Internal]
interface VSErrorInfoKeys {
[Field ("VSErrorInfoKeySAMLResponse")] [Field ("VSErrorInfoKeySAMLResponse")]
NSString SamlResponse { get; } NSString SamlResponseKey { get; }
[Field ("VSErrorInfoKeySAMLResponseStatus")] [Field ("VSErrorInfoKeySAMLResponseStatus")]
NSString SamlResponseStatus { get; } NSString SamlResponseStatusKey { get; }
[Field ("VSErrorInfoKeyUnsupportedProviderIdentifier")] [Field ("VSErrorInfoKeyUnsupportedProviderIdentifier")]
NSString UnsupportedProviderIdentifier { get; } NSString UnsupportedProviderIdentifierKey { get; }
}
[Introduced (PlatformName.iOS, 10, 0)]
[Introduced (PlatformName.TvOS, 10, 0)]
[Unavailable (PlatformName.WatchOS)]
[StrongDictionary ("VSErrorInfoKeys")]
public interface VSErrorInfo {
string SamlResponse { get; }
string SamlResponseStatus { get; }
string UnsupportedProviderIdentifier { get; }
} }
interface IVSAccountManagerDelegate { } interface IVSAccountManagerDelegate { }
@ -95,6 +109,7 @@ namespace XamCore.VideoSubscriberAccount {
[Introduced (PlatformName.TvOS, 10, 0)] [Introduced (PlatformName.TvOS, 10, 0)]
[Unavailable (PlatformName.WatchOS)] [Unavailable (PlatformName.WatchOS)]
[Static] [Static]
[Internal]
interface VSCheckAccessOptionKeys { interface VSCheckAccessOptionKeys {
[Field ("VSCheckAccessOptionPrompt")] [Field ("VSCheckAccessOptionPrompt")]