Add public method to get state as a human readable string from an AsyncRPCOperation.

This commit is contained in:
Simon
2016-09-08 21:46:13 -07:00
parent 15d345466d
commit c72a427274
2 changed files with 7 additions and 0 deletions
+5
View File
@@ -145,3 +145,8 @@ Value AsyncRPCOperation::getStatus() const {
return Value(obj);
}
std::string AsyncRPCOperation::getStateAsString() const {
OperationStatus status = this->getState();
return OperationStatusMap[status];
}