Documentation

Enumerates all the revisions of a file.

Arguments

The circle and FileMap ID.

Returns

The success or failure of the action and the revisions of the desired file.

API Definition

public async Task<EnumRevisionsReply> EnumRevisions(EnumRevisionsRequest request)

 

C# Structures

public class EnumRevisionsRequest {

  public string CircleId;

  public string FmapId;

}

public class EnumRevisionsReply 

{

  public ReturnStatus Status;

  public List<FileInfo> Files;

}

C# Example code:

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}");

  }

}