Module: Api::ResponseReplayInfo::Error
- Defined in:
- lib/sc2ai/protocol/sc2api_pb.rb
Constant Summary collapse
- ENUM_RESPONSE_REPLAY_INFO_ERROR_UNSET =
0
- MISSING_REPLAY =
1
- INVALID_REPLAY_PATH =
2
- INVALID_REPLAY_DATA =
3
- PARSING_ERROR =
4
- DOWNLOAD_ERROR =
5
Class Method Summary collapse
Class Method Details
.lookup(val) ⇒ Object
29384 29385 29386 29387 29388 29389 29390 29391 29392 29393 29394 29395 29396 29397 29398 |
# File 'lib/sc2ai/protocol/sc2api_pb.rb', line 29384 def self.lookup(val) if val == 0 :ENUM_RESPONSE_REPLAY_INFO_ERROR_UNSET elsif val == 1 :MISSING_REPLAY elsif val == 2 :INVALID_REPLAY_PATH elsif val == 3 :INVALID_REPLAY_DATA elsif val == 4 :PARSING_ERROR elsif val == 5 :DOWNLOAD_ERROR end end |
.resolve(val) ⇒ Object
29400 29401 29402 29403 29404 29405 29406 29407 29408 29409 29410 29411 29412 29413 29414 |
# File 'lib/sc2ai/protocol/sc2api_pb.rb', line 29400 def self.resolve(val) if val == :ENUM_RESPONSE_REPLAY_INFO_ERROR_UNSET 0 elsif val == :MISSING_REPLAY 1 elsif val == :INVALID_REPLAY_PATH 2 elsif val == :INVALID_REPLAY_DATA 3 elsif val == :PARSING_ERROR 4 elsif val == :DOWNLOAD_ERROR 5 end end |