コード例 #1
0
        private string ConvertType(TLAuthSentCodeTypeBase type, string number)
        {
            switch (type)
            {
            case TLAuthSentCodeTypeApp appType:
                return(Strings.Android.SentAppCode);

            case TLAuthSentCodeTypeSms smsType:
                return(string.Format(Strings.Android.SentSmsCode, number));
            }

            return(null);
        }
コード例 #2
0
 public static void SetSentCodeType(DependencyObject obj, TLAuthSentCodeTypeBase value)
 {
     obj.SetValue(SentCodeTypeProperty, value);
 }