From ffdef31e0b6193f6467d977a1907e4459869bd87 Mon Sep 17 00:00:00 2001 From: levlam Date: Thu, 8 Sep 2022 12:34:33 +0300 Subject: [PATCH] Update UWP example. --- example/uwp/app/MainPage.xaml.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/example/uwp/app/MainPage.xaml.cs b/example/uwp/app/MainPage.xaml.cs index 9be3f6944..4c42e2767 100644 --- a/example/uwp/app/MainPage.xaml.cs +++ b/example/uwp/app/MainPage.xaml.cs @@ -96,6 +96,18 @@ namespace TdApp AcceptCommand(command); _client.Send(new TdApi.SetAuthenticationPhoneNumber(args[1], null), _handler); } + else if (command.StartsWith("sae")) + { + var args = command.Split(" ".ToCharArray(), 2); + AcceptCommand(command); + _client.Send(new TdApi.SetAuthenticationEmailAddress(args[1]), _handler); + } + else if (command.StartsWith("caec")) + { + var args = command.Split(" ".ToCharArray(), 2); + AcceptCommand(command); + _client.Send(new TdApi.CheckAuthenticationEmailCode(new TdApi.EmailAddressAuthenticationCode(args[1])), _handler); + } else if (command.StartsWith("cac")) { var args = command.Split(" ".ToCharArray(), 2);