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(WorkshopFileItem detail)
        {
            var result = new ModDetail();

            result.AppId       = detail.AppId;
            result.ModId       = detail.WorkshopId;
            result.TimeUpdated = detail.TimeUpdated;
            result.Title       = detail.Title;
            return(result);
        }