public static WorkshopFileItem GetItem(WorkshopFileDetail item)
        {
            if (string.IsNullOrWhiteSpace(item.publishedfileid) || string.IsNullOrWhiteSpace(item.title))
            {
                return(null);
            }

            var result = new WorkshopFileItem();

            result.AppId         = item.creator_appid;
            result.CreatedDate   = ModUtils.UnixTimeStampToDateTime(item.time_created);
            result.FileSize      = -1;
            result.Subscriptions = item.subscriptions;
            result.TimeUpdated   = item.time_updated;
            result.Title         = item.title ?? string.Empty;
            result.UpdatedDate   = ModUtils.UnixTimeStampToDateTime(item.time_updated);
            result.WorkshopId    = item.publishedfileid ?? string.Empty;

            long fileSize;

            if (long.TryParse(item.file_size, out fileSize))
            {
                result.FileSize = fileSize;
            }

            return(result);
        }
        public static ModDetail GetModDetail(WorkshopFileDetail detail)
        {
            var result = new ModDetail();

            result.AppId       = detail.creator_appid;
            result.ModId       = detail.publishedfileid;
            result.TimeUpdated = detail.time_updated;
            result.Title       = detail.title;
            return(result);
        }