iOS SDK Samples - Blueprint Operations
Get Blueprint Details
let getBlueprintDetails = tryblueprintDetails.getDictionary(key: "GetBlueprint")
// record is the object of newRecord()
$record.getBlueprintDetails() { result in
switch result
{
case .success(let blueprint, let response) :
print ("ResponseJSON : \( response.responseJSON )")
case .failure(let error) :
print ( "Throws exception : \(error)" )
}
}
Update Blueprint Details
// record is the object newRecord()
// transistion is the object transistionDetails of blueprint
/* parameters:
- transitionState : Details of the transition to which the record has to be moved */
$record.moveTo(transitionState: transition) { result in
switch result
{
case .success(let response) :
print ("ResponseJSON : \( response.responseJSON )")
case .failure(let error) :
print ( "Throws exception : \(error)" )
}