public static WorkshopFileList GetList(WorkshopFileDetailResponse response)
        {
            var result = new WorkshopFileList();

            result.CachedTime = response.cached.ToLocalTime();
            if (response.publishedfiledetails != null)
            {
                foreach (var detail in response.publishedfiledetails)
                {
                    result.Add(WorkshopFileItem.GetItem(detail));
                }
            }
            return(result);
        }
        public static WorkshopFileDetailResponse Load(string file)
        {
            if (string.IsNullOrWhiteSpace(file) || !File.Exists(file))
            {
                return(null);
            }

            WorkshopFileDetailResponse result = null;

            using (var reader = File.OpenRead(file))
            {
                var serializer = new XmlSerializer(typeof(WorkshopFileDetailResponse));
                result = (WorkshopFileDetailResponse)serializer.Deserialize(reader);
            }

            return(result);
        }