コード例 #1
0
        public async void StartAsync()
        {
            IPhoneManager phoneManager = new ApiPhoneManager();
            var           phone        = await phoneManager.GetPhoneAsync();

            var mobileInfo = new MobileInfo
            {
                Mobile = "18600586330"
            };

            if (await mobileInfo.LoadInfoAsync())
            {
                OrangeHandle orangeHandle = new OrangeHandle(mobileInfo);
                await orangeHandle._1StartAdAsync();

                await orangeHandle._2CreateRecordDataAsync();

                await orangeHandle._3GetUpdateVersionInfoAsync();

                await orangeHandle._4GetTwoOneActiveAsync();

                await orangeHandle._5GetCurrentTimeAsync();

                await orangeHandle._6SceneIndexAsync();

                await orangeHandle._7GetMIndexBannerByTypeAsync();

                await orangeHandle._8SendVerifySMSIsCheckAsync();

                var snsResult = await phoneManager.GetSMSAsync(phone.Data);

                await orangeHandle._9DoRegisterAsync(snsResult.Data);

                await orangeHandle._10PersonalCenterNewAsync();
            }
        }
コード例 #2
0
 public OrangeHandle(MobileInfo mobileInfo)
 {
     httpClient.BaseAddress = new Uri("https://termia.juzifenqi.com");
     httpClient.DefaultRequestHeaders.UserAgent.Add(new ProductInfoHeaderValue("okhttp/3.10.0"));
     MobileInfo = mobileInfo;
 }