Package com.meawallet.mtp
Class MeaMediaContent
- java.lang.Object
-
- com.meawallet.mtp.MeaMediaContent
-
public class MeaMediaContent extends java.lang.Object
Media content of static Assets from a repository, such as - card art, card brand logos, issuers logos, terms and conditions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MeaMediaContent.Type
Asset media content MIME type.
-
Constructor Summary
Constructors Constructor Description MeaMediaContent()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.String
getBase64DataString()
Returns the data for this item of media.java.lang.String
getData()
Deprecated.Returns valid value only PLAIN_TEXT asset type.int
getHeight()
For image assets, returns the height of this image.MeaMediaContent.Type
getType()
Returns what type of media this is.int
getWidth()
For image assets, returns the width of this image.
-
-
-
Method Detail
-
getType
public MeaMediaContent.Type getType()
Returns what type of media this is. Specified as a MIME type, which will be one ofMeaMediaContent.Type
- Returns:
MeaMediaContent.Type
object instance.
-
getData
@Deprecated @Nullable public java.lang.String getData()
Deprecated.Returns valid value only PLAIN_TEXT asset type. UsegetBase64DataString()
instead.Returns the data for this item of media.- Returns:
- String value of the asset.
-
getBase64DataString
public java.lang.String getBase64DataString()
Returns the data for this item of media.- Returns:
- Base64-encoded String value of the asset.
-
getWidth
public int getWidth()
For image assets, returns the width of this image. Specified in pixels.- Returns:
- width value as Integer.
-
getHeight
public int getHeight()
For image assets, returns the height of this image. Specified in pixels.- Returns:
- height value as Integer.
-
-