com.nativex.monetization
Class ApplicationInputs

java.lang.Object
  extended by com.nativex.monetization.ApplicationInputs

public class ApplicationInputs
extends Object

Helper class that represents bundle of data for use when initializing the MonetizationManager.

Author:
Anton Donchev

Field Summary
private  String appId
          The AppId is provided by NativeX and identifies the application in our system.
private  String applicationName
          The application name.
private  com.nativex.monetization.enums.Language language
          Language preference supplied by publishers.Default language set to English (US).
private  String packageName
          The package name of the application.
private  String publisherUserId
          Developer payload.
 
Constructor Summary
ApplicationInputs()
           
 
Method Summary
 String getAppId()
          Returns the AppId of the application.
 String getApplicationName()
          Returns the store application name.
 com.nativex.monetization.enums.Language getLanguage()
          Returns the language set by the publisher.
 String getPackageName()
          Returns package name of the application.
 String getPublisherUserId()
          Returns the PublisherUserId.
 void setAppId(int appId)
          Sets the AppId of the applications.
 void setAppId(String appId)
          Sets the AppId of the applications.
 void setApplicationName(String applicationName)
          Sets the application name.
 void setLanguage(com.nativex.monetization.enums.Language language)
          Sets the language preference.
 void setPackageName(String packageName)
          Sets the package name of the application.
 void setPublisherUserId(String publisherUserId)
          Sets the PublisherUserId.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

applicationName

private String applicationName
The application name.


appId

private String appId
The AppId is provided by NativeX and identifies the application in our system.


publisherUserId

private String publisherUserId
Developer payload.


packageName

private String packageName
The package name of the application.


language

private com.nativex.monetization.enums.Language language
Language preference supplied by publishers.Default language set to English (US).

Constructor Detail

ApplicationInputs

public ApplicationInputs()
Method Detail

getApplicationName

public String getApplicationName()
Returns the store application name.

Returns:
String. The name of the application.

setApplicationName

public void setApplicationName(String applicationName)
Sets the application name.

Parameters:
applicationName - String. The name of the application.

getAppId

public String getAppId()
Returns the AppId of the application.

Returns:
Integer. The AppId.

setAppId

public void setAppId(int appId)
Sets the AppId of the applications. The AppId is provided by NativeX and identifies the application in our system.

Parameters:
appId - Integer. The AppId.

setAppId

public void setAppId(String appId)
Sets the AppId of the applications. The AppId is provided by NativeX and identifies the application in our system.

Parameters:
appId - String. The AppId.

getPublisherUserId

public String getPublisherUserId()
Returns the PublisherUserId.

Returns:
String. The PublisherUserId.

setPublisherUserId

public void setPublisherUserId(String publisherUserId)
Sets the PublisherUserId. This is a payload send to the server with CreateSession request.

Parameters:
publisherUserId - String. A string that will be sent to the server.

getPackageName

public String getPackageName()
Returns package name of the application.

Returns:
String. The packaga name of the application.

setPackageName

public void setPackageName(String packageName)
Sets the package name of the application.

Parameters:
packageName - String. The package name of the application.

getLanguage

public com.nativex.monetization.enums.Language getLanguage()
Returns the language set by the publisher.

Returns:
language Language. Language set by publisher.

setLanguage

public void setLanguage(com.nativex.monetization.enums.Language language)
Sets the language preference.

Parameters:
language - Language. Language set for localisation.