Android Open Source - sdk-fortune Fortune Interface






From Project

Back to project page sdk-fortune.

License

The source code is released under:

GNU Lesser General Public License

If you think the Android project sdk-fortune listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package org.silpa.fortune;
//from   ww w  .  j a v  a 2 s  .c o m
/**
 * Created by sujith on 16/6/14.
 */
public interface FortuneInterface {

    /**
     * Set pattern for searching
     *
     * @param pattern string pattern
     */
    public void setPattern(String pattern);

    /**
     * This function is to set time interval
     *
     * @param timeInterval time in seconds
     */
    public void setTimeInterval(int timeInterval);

    /**
     * This function is used to explicitly set quote set
     *
     * @param quoteSet quote set
     *                 Fortune.QUOTES_SET_CHANAKYA
     *                 Fortune.QUOTES_SET_MALAYALAM_PROVERBS
     *                 Fortune.QUOTES_SET_THIRUKKURAL
     */
    public void setQuoteSet(int quoteSet);

    /**
     * This function gives name of the module
     *
     * @return name of module
     */

    public String getModuleName();

    /**
     * This function gives a brief description of the module
     *
     * @return brief information regarding the module
     */
    public String getModuleInformation();
}




Java Source Code List

org.silpa.fortune.FortuneInterface.java
org.silpa.fortune.FortuneSQLiteUtil.java
org.silpa.fortune.FortuneTextView.java
org.silpa.fortune.Fortune.java