| 42 | } |
| 43 | |
| 44 | MediaFileType MediaFileTypeHelper::fromInt(int messageTypeInt) { |
| 45 | if (messageTypeInt == 1) { |
| 46 | return MediaFileType::TYPE_STANDARD; |
| 47 | } else if (messageTypeInt == 2) { |
| 48 | return MediaFileType::TYPE_THUMBNAIL; |
| 49 | } else { |
| 50 | throw openmittsu::exceptions::InternalErrorException() << "Unhandled MediaFileType string representation, this should never happen: " << messageTypeInt; |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | } |
| 55 | } |
nothing calls this directly
no outgoing calls
no test coverage detected