Assets/Watson/Scripts/Services/RetrieveAndRank/RetrieveAndRank.cs
/// <summary>
/// Returns status and other information about a ranker.
/// </summary>
/// <param name="callback"></param>
/// <param name="rankerID">ID of the ranker to query.</param>
/// <param name="customData"></param>
/// <returns></returns>
Returns status and other information about a ranker.
Returns status and other information about a ranker .
public bool GetRanker(OnGetRanker callback, string rankerID, string customData = default(string))
		{
			if (callback == null)
				throw new ArgumentNullException("callback");
			if (string.IsNullOrEmpty(rankerID))
				throw new ArgumentNullException("RankerID to get is required!");
			GetRankerRequest req = new GetRankerRequest();
			req.Callback = callback;
            req.Data = customData;
			req.RankerID = rankerID;
            req.Timeout = REQUEST_TIMEOUT;
            RESTConnector connector = RESTConnector.GetConnector(SERVICE_ID, string.Format(SERVICE_RANKER, rankerID));
			if (connector == null)
				return false;
			req.OnResponse = OnGetRankerResponse;
			return connector.Send(req);
		}
public bool GetRanker ( OnGetRanker callback , string rankerID , string customData = default ( string ) ) { if ( callback == null ) throw new ArgumentNullException ( " " ) ; if ( string . IsNullOrEmpty ( rankerID ) ) throw new ArgumentNullException ( " " ) ; GetRankerRequest req = new GetRankerRequest ( ) ; req . Callback = callback ; req . Data = customData ; req . RankerID = rankerID ; req . Timeout = REQUEST_TIMEOUT ; RESTConnector connector = RESTConnector . GetConnector ( SERVICE_ID , string . Format ( SERVICE_RANKER , rankerID ) ) ; if ( connector == null ) return false ; req . OnResponse = OnGetRankerResponse ; return connector . Send ( req ) ; }
Returns status and other information about a ranker.
Returns status and other information about a ranker .
None
callback
OnGetRanker
None
rankerID
string
ID of the ranker to query.
ID of the ranker to query .
customData
string
None