com.iSpeech
Class MetaData

java.lang.Object
  extended by com.iSpeech.MetaData

public class MetaData
extends java.lang.Object

Contains user specific information. You should always pass a MetaData reference to SpeechSynthesis or SpeechRecognizer


Field Summary
static int META_APPLICATION_NAME
          Your application's name.
static int META_FIRST_NAME
          First name of user.
static int META_ID
          Identifier of user.
static int META_LAST_NAME
          Last name of user.
static int META_LATITUDE
          The latitude of the user .
static int META_LONGITUDE
          The longitude of the user.
static int META_OS
          Operating system of user.
static int META_PHONETYPE
          Phone type of user.
static int META_PROVIDER
          Provider of user.
 
Constructor Summary
MetaData()
          Creates a new instance of the MetaData class.
 
Method Summary
 boolean addMeta(int metaType, java.lang.String value)
          Add a meta value to this metadata object.
 void clearMeta()
          Clear all the data in this object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

META_FIRST_NAME

public static int META_FIRST_NAME
First name of user.


META_LAST_NAME

public static int META_LAST_NAME
Last name of user.


META_ID

public static int META_ID
Identifier of user.


META_OS

public static int META_OS
Operating system of user.


META_PHONETYPE

public static int META_PHONETYPE
Phone type of user.


META_PROVIDER

public static int META_PROVIDER
Provider of user.


META_APPLICATION_NAME

public static int META_APPLICATION_NAME
Your application's name.


META_LATITUDE

public static int META_LATITUDE
The latitude of the user .


META_LONGITUDE

public static int META_LONGITUDE
The longitude of the user.

Constructor Detail

MetaData

public MetaData()
Creates a new instance of the MetaData class.

Method Detail

addMeta

public boolean addMeta(int metaType,
                       java.lang.String value)
Add a meta value to this metadata object. This is used for targeting specific users. It is highly recommended you fill in as many META_ fields as possible.

Parameters:
metaType - One of the META_ constant values.
value - A string containing relevant data.
Returns:

clearMeta

public void clearMeta()
Clear all the data in this object.