Exemplo n.º 1
0
 public static AppView Default()
 {
     var r = new AppView()
     {
         Summary = "汉风游戏“幻想三国”本着让玩家免费玩,痛快玩的宗旨,以独特的特色游戏模式诚服众玩家的心,三大职业独创专属技能,两大修为阶段,创新帮派争霸战玩法,让玩家充分感受三国天下,唯我争霸的历程。骑战马,带副将,畅想PK超强打击感!纵情挥洒游戏的热情与激情,让兼具勇气与智慧的您成为万人之中尊受崇敬的王者!",
         ImageCount = 2,
         ImageList = new List<string> { "3.jpg", "4.jpg"},
         DownloadUrl = "http://testappstore.778899.cn/File/20120216172328_i2008.yll",
         Drive = "C|Z|T|M",
         StorageName = "ylapp\\bootloader.ylc",
         IsHide = 1
     };
     return r;
 }
        public void serialization()
        {
            var appView = new AppView
            {
                AppNo = "40001",
                Id = 5555,
                LogoFileName = "55.gif",
                Summary="测试测试",
                DownloadUrl = "c:\\a.jar"
            };

            var list = new List<AppView>();
            list.Add(appView);
            list.Add(appView);

            var json = JsonConvert.SerializeObject(list, Formatting.Indented);
            var fileService = ObjectFactory.GetInstance<IFileService>();
            fileService.Write("d:\\temp\\json.json", json);
        }
Exemplo n.º 3
0
 private void SetVersionInfoForApp(AppView appView, AppVersion appVersion, MobileParam mobileParams)
 {
     appView.PublishTime = appVersion.PublishDateTime;
     appView.FileSize = appVersion.FileSize;
     appView.VersionName = appVersion.VersionName;
     //appView.DownloadUrl = GetAppDownloadUrl(appView.AppNo, mobileParams, 0);
 }