fromText static method
Implementation
static BackgroundMessageType fromText(String text) {
if (BackgroundMessageType.cancelInvitation.text == text) {
return BackgroundMessageType.cancelInvitation;
} else if (BackgroundMessageType.textMessage.text == text) {
return BackgroundMessageType.textMessage;
} else if (BackgroundMessageType.mediaMessage.text == text) {
return BackgroundMessageType.mediaMessage;
}
return BackgroundMessageType.invitation;
}