EChatEntryType.fromValue constructor
EChatEntryType.fromValue(
- int value
Implementation
factory EChatEntryType.fromValue(int value) {
switch (value) {
case 0:
return EChatEntryType.invalid;
case 1:
return EChatEntryType.chatMsg;
case 2:
return EChatEntryType.typing;
case 3:
return EChatEntryType.inviteGame;
case 4:
return EChatEntryType.emote;
case 6:
return EChatEntryType.leftConversation;
case 7:
return EChatEntryType.entered;
case 8:
return EChatEntryType.wasKicked;
case 9:
return EChatEntryType.wasBanned;
case 10:
return EChatEntryType.disconnected;
case 11:
return EChatEntryType.historicalChat;
case 14:
return EChatEntryType.linkBlocked;
default:
throw UnknownEnumValueException(
"Unknown value for 'EChatEntryType'. The value was: '$value'",
);
}
}