Assets/Watson/Scripts/Services/RetrieveAndRank/RetrieveAndRank.cs
/// <summary>
/// Returns status and other information about a cluster.
/// </summary>
/// <param name="callback"></param>
/// <param name="clusterID">Unique identifier for this cluster.</param>
/// <param name="customData"></param>
/// <returns></returns>
Returns status and other information about a cluster.
Returns status and other information about a cluster .
public bool GetCluster(OnGetCluster callback, string clusterID, string customData = default(string))
        {
            if (callback == null)
                throw new ArgumentNullException("callback");
            if (string.IsNullOrEmpty(clusterID))
                throw new ArgumentNullException("ClusterID to get is required!");
            GetClusterRequest req = new GetClusterRequest();
            req.Callback = callback;
            req.Data = customData;
            req.ClusterID = clusterID;
            req.Timeout = REQUEST_TIMEOUT;
            RESTConnector connector = RESTConnector.GetConnector(SERVICE_ID, string.Format(SERVICE_CLUSTER, clusterID));
            if (connector == null)
                return false;
            req.OnResponse = OnGetClusterResponse;
            return connector.Send(req);
        }
public bool GetCluster ( OnGetCluster callback , string clusterID , string customData = default ( string ) ) { if ( callback == null ) throw new ArgumentNullException ( " " ) ; if ( string . IsNullOrEmpty ( clusterID ) ) throw new ArgumentNullException ( " " ) ; GetClusterRequest req = new GetClusterRequest ( ) ; req . Callback = callback ; req . Data = customData ; req . ClusterID = clusterID ; req . Timeout = REQUEST_TIMEOUT ; RESTConnector connector = RESTConnector . GetConnector ( SERVICE_ID , string . Format ( SERVICE_CLUSTER , clusterID ) ) ; if ( connector == null ) return false ; req . OnResponse = OnGetClusterResponse ; return connector . Send ( req ) ; }
Returns status and other information about a cluster.
Returns status and other information about a cluster .
None
callback
OnGetCluster
None
clusterID
string
Unique identifier for this cluster.
Unique identifier for this cluster .
customData
string
None