You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#ROBOMERGE-SOURCE: CL 16919369 in //UE5/Main/... #ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v836-16769935) [CL 16919391 by ben marsh in ue5-release-engine-test branch]
46 lines
1.2 KiB
C#
46 lines
1.2 KiB
C#
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
using HordeServer.Models;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using EpicGames.Core;
|
|
using MongoDB.Bson;
|
|
using HordeServer.Utilities;
|
|
|
|
namespace HordeServer.Commits
|
|
{
|
|
using StreamId = StringId<IStream>;
|
|
|
|
/// <summary>
|
|
/// Stores a collection of commits
|
|
/// </summary>
|
|
interface ICommitCollection
|
|
{
|
|
/// <summary>
|
|
/// Adds or replaces an existing commit
|
|
/// </summary>
|
|
/// <param name="NewCommit">The new commit to add</param>
|
|
/// <returns>The commit that was created</returns>
|
|
Task<ICommit> AddOrReplaceAsync(NewCommit NewCommit);
|
|
|
|
/// <summary>
|
|
/// Gets a single commit
|
|
/// </summary>
|
|
/// <param name="Id">Identifier for the commit</param>
|
|
Task<ICommit?> GetCommitAsync(ObjectId Id);
|
|
|
|
/// <summary>
|
|
/// Finds commits matching certain criteria
|
|
/// </summary>
|
|
/// <param name="StreamId"></param>
|
|
/// <param name="MinChange"></param>
|
|
/// <param name="MaxChange"></param>
|
|
/// <param name="Index"></param>
|
|
/// <param name="Count"></param>
|
|
/// <returns></returns>
|
|
Task<List<ICommit>> FindCommitsAsync(StreamId StreamId, int? MinChange = null, int? MaxChange = null, int? Index = null, int? Count = null);
|
|
}
|
|
}
|