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.Connection.RESTConnector.Form Class Reference

Multi-part form data class. More...

Public Member Functions

 Form (string s)
 Make a multi-part form object from a string. More...
 
 Form (int n)
 Make a multi-part form object from an int. More...
 
 Form (byte[] contents, string fileName=null, string mimeType=null)
 Make a multi-part form object from binary data. More...
 

Properties

bool IsBinary [get, set]
 True if the contained data is binary. More...
 
object BoxedObject [get, set]
 The boxed POD data type, only set if IsBinary is false. More...
 
byte[] Contents [get, set]
 If IsBinary is true, then this will contain the binary data. More...
 
string FileName [get, set]
 The filename of the binary data. More...
 
string MimeType [get, set]
 The Mime-Type of the binary data. More...
 

Detailed Description

Multi-part form data class.

Constructor & Destructor Documentation

IBM.Watson.DeveloperCloud.Connection.RESTConnector.Form.Form ( string  s)
inline

Make a multi-part form object from a string.

Parameters
sThe string data.
IBM.Watson.DeveloperCloud.Connection.RESTConnector.Form.Form ( int  n)
inline

Make a multi-part form object from an int.

Parameters
nThe int data.
IBM.Watson.DeveloperCloud.Connection.RESTConnector.Form.Form ( byte[]  contents,
string  fileName = null,
string  mimeType = null 
)
inline

Make a multi-part form object from binary data.

Parameters
contentsThe binary data.
fileNameThe filename of the binary data.
mimeTypeThe mime type of the data.

Property Documentation

object IBM.Watson.DeveloperCloud.Connection.RESTConnector.Form.BoxedObject
getset

The boxed POD data type, only set if IsBinary is false.

byte [] IBM.Watson.DeveloperCloud.Connection.RESTConnector.Form.Contents
getset

If IsBinary is true, then this will contain the binary data.

string IBM.Watson.DeveloperCloud.Connection.RESTConnector.Form.FileName
getset

The filename of the binary data.

bool IBM.Watson.DeveloperCloud.Connection.RESTConnector.Form.IsBinary
getset

True if the contained data is binary.

string IBM.Watson.DeveloperCloud.Connection.RESTConnector.Form.MimeType
getset

The Mime-Type of the binary data.


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