| 4 | |
| 5 | namespace CesiumITwinClient { |
| 6 | ITwinStatus iTwinStatusFromString(const std::string& str) { |
| 7 | if (str == "Active") { |
| 8 | return ITwinStatus::Active; |
| 9 | } else if (str == "Inactive") { |
| 10 | return ITwinStatus::Inactive; |
| 11 | } else if (str == "Trial") { |
| 12 | return ITwinStatus::Trial; |
| 13 | } |
| 14 | |
| 15 | return ITwinStatus::Unknown; |
| 16 | } |
| 17 | } // namespace CesiumITwinClient |