mysimulation/server/FSO.Server.Database/DA/Updates/IUpdates.cs
Tony Bark 22191ce648 Removed NioTSO client and server
- NioTSO client isn't needed because we're using RayLib
- Added FreeSO's API server to handle most backend operations
2024-05-01 02:55:43 -04:00

29 lines
1.3 KiB
C#
Executable file

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<DbUpdate> GetRecentUpdatesForBranchByID(int branch_id, int limit);
IEnumerable<DbUpdate> GetRecentUpdatesForBranchByName(string branch_name, int limit);
IEnumerable<DbUpdate> GetPublishableByBranchName(string branch_name);
PagedList<DbUpdate> 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<DbUpdateAddon> GetAddons(int limit);
bool AddAddon(DbUpdateAddon addon);
DbUpdateBranch GetBranch(int branch_id);
DbUpdateBranch GetBranch(string branch_name);
IEnumerable<DbUpdateBranch> 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);
}
}