wxr
2021-11-24 8655407ab6987bb7268fab55b6380051f26668fe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
using System;
using CoreGraphics;
using Foundation;
using Intents;
using IntentsUI;
using UIKit;
 
namespace Other
{
    public class SkipControl
    {
        public SkipControl()
        {
        }
 
        public void SkipSiriView()
        {
            //var user = new SiriBaseView();
            //user.View.BackgroundColor = new UIColor(242, 243, 247, 1);
 
            //HDL_ON_iOS.AppDelegate.rootViewController.PushViewController(user, true);
 
 
 
            NSMutableArray list = new NSMutableArray();
            foreach (var localScene in HDL_ON.Entity.FunctionList.List.scenes)
            {
                list.Add(new HDLSceneSiri.HDLSiriSceneModel()
                {
                    UserSceneId = localScene.userSceneId,
                    Name = localScene.name,
                });
            }
            var vc = new HDLSceneSiri.HDLSiriSceneListViewController();
            vc.DataSource = list;
            //vc.TitleName
            //PresentViewController(vc, true, null);
            HDL_ON_iOS.AppDelegate.rootViewController.PushViewController(vc, true);
        }
 
        public void SetData(bool isLogin, string accessToken, string refreshToken, string regionUrl)
        {
            var sDM = new Other.Siri.SceneDateManager();
            sDM.SetIsLoginValue(isLogin);
            sDM.SetAccessTokenValue(accessToken);
            sDM.SetRefreshTokenValue(refreshToken);
            sDM.SetRegionUrlValue(regionUrl);
        }
    }
}