MCPcopy Create free account
hub / github.com/blizzard4591/openMittsu / fromInt

Method fromInt

src/database/MediaFileType.cpp:44–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected