using FSO.Server.Database.DA.Utils; using System.Collections.Generic; namespace FSO.Server.Database.DA.Updates { public interface IUpdates { DbUpdate GetUpdate(int update_id); IEnumerable GetRecentUpdatesForBranchByID(int branch_id, int limit); IEnumerable GetRecentUpdatesForBranchByName(string branch_name, int limit); IEnumerable GetPublishableByBranchName(string branch_name); PagedList All(int offset = 0, int limit = 20, string orderBy = "date"); int AddUpdate(DbUpdate update); bool MarkUpdatePublished(int update_id); DbUpdateAddon GetAddon(int addon_id); IEnumerable GetAddons(int limit); bool AddAddon(DbUpdateAddon addon); DbUpdateBranch GetBranch(int branch_id); DbUpdateBranch GetBranch(string branch_name); IEnumerable GetBranches(); bool AddBranch(DbUpdateBranch branch); bool UpdateBranchLatest(int branch_id, int last_version_number, int minor_version_number); bool UpdateBranchLatestDeployed(int branch_id, int current_dist_id); bool UpdateBranchAddon(int branch_id, int addon_id); bool UpdateBranchInfo(DbUpdateBranch branch); } }