Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add serialization/deserialization support for ClassifierId, Split and Pages. #47619

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Licensed under the MIT License.

using System;
using System.Collections.Generic;

namespace Azure.AI.DocumentIntelligence
{
Expand Down Expand Up @@ -62,6 +63,30 @@ internal ClassifyDocumentOptions()
{
}

/// <summary>
/// Initializes a new instance of <see cref="ClassifyDocumentOptions"/>.
/// </summary>
/// <param name="classifierId"> Unique document classifier name. </param>
/// <param name="uriSource"> Document URL to classify. </param>
/// <param name="bytesSource"> Bytes of the document to classify. </param>
/// <param name="split"> Document splitting mode </param>
/// <param name="pages"> 1-based page numbers to analyze. Ex. "1-3,5,7-9". </param>
/// <param name="serializedAdditionalRawData"> Keeps track of any properties unknown to the library. </param>
internal ClassifyDocumentOptions(string classifierId,
Uri uriSource,
BinaryData bytesSource,
SplitMode? split,
string pages,
IDictionary<string, BinaryData> serializedAdditionalRawData)
{
ClassifierId = classifierId;
UriSource = uriSource;
BytesSource = bytesSource;
Split = split;
Pages = pages;
_serializedAdditionalRawData = serializedAdditionalRawData;
}

/// <summary>
/// Unique document classifier name.
/// </summary>
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading