Package com.meawallet.mtp
Class MeaTokenPlatform.Rns
- java.lang.Object
-
- com.meawallet.mtp.MeaTokenPlatform.Rns
-
- Enclosing class:
- MeaTokenPlatform
public static class MeaTokenPlatform.Rns extends java.lang.Object
Remote Notification Service interface.
-
-
Constructor Summary
Constructors Constructor Description Rns()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isMeaRemoteMessage(java.util.Map messageData)
Check if the remote message is dedicated message for the library.static boolean
isMeaTransactionMessage(java.util.Map messageData)
Check if the remote message is dedicated transaction message for the library.static void
onMessageReceived(java.util.Map<java.lang.String,java.lang.String> messageData)
Forwards remote notification service message to the library.static MeaTransactionMessage
parseTransactionMessage(java.util.Map<java.lang.String,java.lang.String> messageData)
Deserialize transaction message data into an object of theMeaTransactionMessage
class.
-
-
-
Method Detail
-
isMeaRemoteMessage
public static boolean isMeaRemoteMessage(@NonNull java.util.Map messageData)
Check if the remote message is dedicated message for the library.- Parameters:
messageData
- The remote message data.- Returns:
- push message check value to be MeaWallet push message as Boolean.
-
isMeaTransactionMessage
public static boolean isMeaTransactionMessage(@NonNull java.util.Map messageData)
Check if the remote message is dedicated transaction message for the library.- Parameters:
messageData
- The remote message data.- Returns:
- push message check value to be MeaWallet push message as Boolean.
-
onMessageReceived
public static void onMessageReceived(@NonNull java.util.Map<java.lang.String,java.lang.String> messageData) throws NotInitializedException, NotRegisteredException, InvalidInputException, MeaCardException, MeaException
Forwards remote notification service message to the library.- Parameters:
messageData
- The remote data.- Throws:
NotInitializedException
- if library is not initialized.NotRegisteredException
- if library is not registered.InvalidInputException
- if invalid input data is provided.com.meawallet.mtp.ParseException
- if error occurred while parsing data.MeaCardException
- if error occurred while executing Card operation.MeaException
- if any other error occurred while processing method.
-
parseTransactionMessage
@Nullable public static MeaTransactionMessage parseTransactionMessage(@NonNull java.util.Map<java.lang.String,java.lang.String> messageData) throws NotInitializedException
Deserialize transaction message data into an object of theMeaTransactionMessage
class.- Parameters:
messageData
- The remote data.- Returns:
- The
MeaTransactionMessage
object. - Throws:
NotInitializedException
- if library is not initialized.
-
-