Enumerates all the revisions of a file.
The circle and FileMap ID.
The success or failure of the action and the revisions of the desired file.
public async Task<EnumRevisionsReply> EnumRevisions(EnumRevisionsRequest request)
public class EnumRevisionsRequest {
public string CircleId;
public string FmapId;
}
public class EnumRevisionsReply
{
public ReturnStatus Status;
public List<FileInfo> Files;
}
public void EnumRevisions(string circleId, string fileMapId)
{
EnumRevisionsRequest request = new EnumRevisionsRequest()
{ CircleId = circleId, FmapId = fileMapId };
EnumRevisionsReply reply = _circle.EnumRevisions(request);
Console.WriteLine(reply.Status.Message);
foreach (FileInfo fi in reply.Files)
{
Console.WriteLine($"{fi.FmapId} - {fi.FileName} - {fi.FileSize} - {fi.RevisionNumber}");
}
}