public GetDocumentsOperation(Alachisoft.NosDB.Common.Protobuf.Command command) : base(command.ToBuilder()) { _getDocumentsCommand = command.GetDocumentsCommand.ToBuilder(); _documentId = new List <IJSONDocument>(); foreach (string document in _getDocumentsCommand.DocumentIdsList) { DocumentIds.Add(JSONDocument.Parse(document)); } base.Message = this; }
public void AddDocumentId(object documentId) { DocumentIds.Add((DocumentId)documentId); }