Esempio n. 1
0
        public void DeleteUnValidApkInfo()
        {
            List <KeyValuePair <string, string> > delAppVerInfos = new List <KeyValuePair <string, string> >();

            delAppVerInfos.Add(new KeyValuePair <string, string>(59025.ToString(), 8.ToString()));
            delAppVerInfos.Add(new KeyValuePair <string, string>(59167.ToString(), 62.ToString()));
            delAppVerInfos.Add(new KeyValuePair <string, string>(60785.ToString(), 560.ToString()));
            delAppVerInfos.Add(new KeyValuePair <string, string>(59229.ToString(), 8.ToString()));
            delAppVerInfos.Add(new KeyValuePair <string, string>(59231.ToString(), 1.ToString()));
            delAppVerInfos.Add(new KeyValuePair <string, string>(61504.ToString(), 4.ToString()));
            delAppVerInfos.Add(new KeyValuePair <string, string>(61538.ToString(), 1.ToString()));
            delAppVerInfos.Add(new KeyValuePair <string, string>(61624.ToString(), 8.ToString()));
            delAppVerInfos.Add(new KeyValuePair <string, string>(60923.ToString(), 19.ToString()));
            delAppVerInfos.Add(new KeyValuePair <string, string>(60931.ToString(), 11.ToString()));
            delAppVerInfos.Add(new KeyValuePair <string, string>(58779.ToString(), 12.ToString()));
            delAppVerInfos.Add(new KeyValuePair <string, string>(59683.ToString(), 41.ToString()));
            delAppVerInfos.Add(new KeyValuePair <string, string>(60041.ToString(), 21.ToString()));

            RedisService      redis             = new RedisService();
            AppStoreUIService AppStoreUIService = new AppStoreUIService(FileService, redis);

            foreach (var del in delAppVerInfos)
            {
                redis.DeleteSubModel <App, AndroidPackageView>(del.Key, del.Value);
                redis.DeleteSubModel <App, AppVersion>(del.Key, del.Value);
                LogHelper.WriteInfo(string.Format("Remove App {0} with Version code {1}", del.Key, del.Value));
            }
        }