-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #598 from diadoc/detect-document-titles
Add DetectDocumentTitles method.
- Loading branch information
Showing
9 changed files
with
239 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import "Events/DiadocMessage-PostApi.proto"; | ||
|
||
package Diadoc.Api.Proto.Documents; | ||
|
||
message DetectTitleResponse { | ||
repeated DetectedDocumentTitle DocumentTitles = 1; | ||
} | ||
|
||
message DetectedDocumentTitle { | ||
required string TypeNamedId = 1; | ||
required string Function = 2; | ||
required string Version = 3; | ||
required int32 TitleIndex = 4; | ||
repeated Events.MetadataItem Metadata = 5; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
using System.Runtime.InteropServices; | ||
using Diadoc.Api.Com; | ||
|
||
namespace Diadoc.Api.Proto.Documents | ||
{ | ||
[ComVisible(true)] | ||
[Guid("7A0E4E36-4ECD-4CBB-A326-66CE219E4601")] | ||
public interface IDetectTitleResponse | ||
{ | ||
ReadonlyList DocumentTitlesList { get; } | ||
} | ||
|
||
[ComVisible(true)] | ||
[Guid("38C6484E-78A5-4DD5-9C54-F761B26E2801")] | ||
[ClassInterface(ClassInterfaceType.None)] | ||
[ComDefaultInterface(typeof(IDetectTitleResponse))] | ||
public partial class DetectTitleResponse : SafeComObject, IDetectTitleResponse | ||
{ | ||
public ReadonlyList DocumentTitlesList | ||
{ | ||
get { return new ReadonlyList(DocumentTitles); } | ||
} | ||
} | ||
|
||
[ComVisible(true)] | ||
[Guid("48594CB9-DB64-4252-A8E3-6631BFABE94F")] | ||
public interface IDetectedDocumentTitle | ||
{ | ||
string TypeNamedId { get; } | ||
string Function { get; } | ||
string Version { get; } | ||
int TitleIndex { get; } | ||
ReadonlyList MetadataList { get; } | ||
} | ||
|
||
[ComVisible(true)] | ||
[Guid("7AB7A204-FC84-4C62-9D40-EF1CDE29F9E6")] | ||
[ClassInterface(ClassInterfaceType.None)] | ||
[ComDefaultInterface(typeof(IDetectedDocumentTitle))] | ||
public partial class DetectedDocumentTitle : SafeComObject, IDetectedDocumentTitle | ||
{ | ||
public ReadonlyList MetadataList | ||
{ | ||
get { return new ReadonlyList(Metadata); } | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
//------------------------------------------------------------------------------ | ||
// <auto-generated> | ||
// This code was generated by a tool. | ||
// | ||
// Changes to this file may cause incorrect behavior and will be lost if | ||
// the code is regenerated. | ||
// </auto-generated> | ||
//------------------------------------------------------------------------------ | ||
|
||
// Generated from: Documents/DetectTitleResponse.proto | ||
// Note: requires additional types generated from: Events/DiadocMessage-PostApi.proto | ||
namespace Diadoc.Api.Proto.Documents | ||
{ | ||
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"DetectTitleResponse")] | ||
public partial class DetectTitleResponse : global::ProtoBuf.IExtensible | ||
{ | ||
public DetectTitleResponse() {} | ||
|
||
private readonly global::System.Collections.Generic.List<Diadoc.Api.Proto.Documents.DetectedDocumentTitle> _DocumentTitles = new global::System.Collections.Generic.List<Diadoc.Api.Proto.Documents.DetectedDocumentTitle>(); | ||
[global::ProtoBuf.ProtoMember(1, Name=@"DocumentTitles", DataFormat = global::ProtoBuf.DataFormat.Default)] | ||
public global::System.Collections.Generic.List<Diadoc.Api.Proto.Documents.DetectedDocumentTitle> DocumentTitles | ||
{ | ||
get { return _DocumentTitles; } | ||
} | ||
|
||
private global::ProtoBuf.IExtension extensionObject; | ||
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing) | ||
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); } | ||
} | ||
|
||
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"DetectedDocumentTitle")] | ||
public partial class DetectedDocumentTitle : global::ProtoBuf.IExtensible | ||
{ | ||
public DetectedDocumentTitle() {} | ||
|
||
private string _TypeNamedId; | ||
[global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"TypeNamedId", DataFormat = global::ProtoBuf.DataFormat.Default)] | ||
public string TypeNamedId | ||
{ | ||
get { return _TypeNamedId; } | ||
set { _TypeNamedId = value; } | ||
} | ||
private string _Function; | ||
[global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"Function", DataFormat = global::ProtoBuf.DataFormat.Default)] | ||
public string Function | ||
{ | ||
get { return _Function; } | ||
set { _Function = value; } | ||
} | ||
private string _Version; | ||
[global::ProtoBuf.ProtoMember(3, IsRequired = true, Name=@"Version", DataFormat = global::ProtoBuf.DataFormat.Default)] | ||
public string Version | ||
{ | ||
get { return _Version; } | ||
set { _Version = value; } | ||
} | ||
private int _TitleIndex; | ||
[global::ProtoBuf.ProtoMember(4, IsRequired = true, Name=@"TitleIndex", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)] | ||
public int TitleIndex | ||
{ | ||
get { return _TitleIndex; } | ||
set { _TitleIndex = value; } | ||
} | ||
private readonly global::System.Collections.Generic.List<Diadoc.Api.Proto.Events.MetadataItem> _Metadata = new global::System.Collections.Generic.List<Diadoc.Api.Proto.Events.MetadataItem>(); | ||
[global::ProtoBuf.ProtoMember(5, Name=@"Metadata", DataFormat = global::ProtoBuf.DataFormat.Default)] | ||
public global::System.Collections.Generic.List<Diadoc.Api.Proto.Events.MetadataItem> Metadata | ||
{ | ||
get { return _Metadata; } | ||
} | ||
|
||
private global::ProtoBuf.IExtension extensionObject; | ||
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing) | ||
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); } | ||
} | ||
|
||
} |