public async Task <WorkshopFileDetails> GetWorkshopDetails() { if (Details != null) { return(Details); } string idPath = GetIdPath(); string id = ModId; if (id == null) { if (!File.Exists(idPath)) { return(null); } id = File.ReadAllText(idPath); } var details = await SteamWorkshop.GetWorkshopFileDetails(id); Details = details; if (ModId == null) { ModId = id; } return(details); }
public static void AddRow(string path, string name, DateTime local, DateTime remote, WorkshopFileDetails file) { _instance.listObjectsParsed.AddObject(new BaseMod { ModPath = path, Details = file }); }