Watson Developer Cloud Unity SDK  1.0.0
The Unity SDK uses the Watson Developer Cloud services, a collection of REST APIs and SDKs that use cognitive computing to solve complex problems.
IBM.Watson.DeveloperCloud.Services.DocumentConversion.v1.DocumentConversion Class Reference

This class wraps the Document Conversion service. Document Conversion Service More...

Inheritance diagram for IBM.Watson.DeveloperCloud.Services.DocumentConversion.v1.DocumentConversion:
IBM.Watson.DeveloperCloud.Services.IWatsonService

Public Member Functions

 DocumentConversion (Credentials credentials)
 
delegate void OnConvertDocument (ConvertedDocument resp, string data)
 The OnConvertDocument callback. More...
 
delegate byte[] LoadFileDelegate (string filename)
 The delegate for loading a file, used by TrainClassifier(). More...
 
bool ConvertDocument (OnConvertDocument callback, string documentPath, string conversionTarget, string data=null)
 Convert document to use in other Watson services. More...
 
string GetServiceID ()
 <exclude> More...
 

Properties

string Url [get, set]
 Gets and sets the endpoint URL for the service. More...
 
Credentials Credentials [get, set]
 Gets and sets the credentials of the service. Replace the default endpoint if endpoint is defined. More...
 
LoadFileDelegate LoadFile [get, set]
 Set this property to overload the internal file loading of this class. More...
 

Detailed Description

This class wraps the Document Conversion service. Document Conversion Service

Constructor & Destructor Documentation

IBM.Watson.DeveloperCloud.Services.DocumentConversion.v1.DocumentConversion.DocumentConversion ( Credentials  credentials)
inline

Member Function Documentation

bool IBM.Watson.DeveloperCloud.Services.DocumentConversion.v1.DocumentConversion.ConvertDocument ( OnConvertDocument  callback,
string  documentPath,
string  conversionTarget,
string  data = null 
)
inline

Convert document to use in other Watson services.

Parameters
callback
documentPath
conversionTarget
data
Returns
string IBM.Watson.DeveloperCloud.Services.DocumentConversion.v1.DocumentConversion.GetServiceID ( )
inline
delegate byte [] IBM.Watson.DeveloperCloud.Services.DocumentConversion.v1.DocumentConversion.LoadFileDelegate ( string  filename)

The delegate for loading a file, used by TrainClassifier().

Parameters
filenameThe filename to load.
Returns
Should return a byte array of the file contents or null of failure.
delegate void IBM.Watson.DeveloperCloud.Services.DocumentConversion.v1.DocumentConversion.OnConvertDocument ( ConvertedDocument  resp,
string  data 
)

The OnConvertDocument callback.

Parameters
resp
data

Property Documentation

Credentials IBM.Watson.DeveloperCloud.Services.DocumentConversion.v1.DocumentConversion.Credentials
getset

Gets and sets the credentials of the service. Replace the default endpoint if endpoint is defined.

LoadFileDelegate IBM.Watson.DeveloperCloud.Services.DocumentConversion.v1.DocumentConversion.LoadFile
getset

Set this property to overload the internal file loading of this class.

string IBM.Watson.DeveloperCloud.Services.DocumentConversion.v1.DocumentConversion.Url
getset

Gets and sets the endpoint URL for the service.


The documentation for this class was generated from the following file: