Android Open Source - EZ-Wifi-Notification Message






From Project

Back to project page EZ-Wifi-Notification.

License

The source code is released under:

GNU General Public License

If you think the Android project EZ-Wifi-Notification 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 et.nWifiManager.Message;
//from   w w  w . java  2  s.co  m
import et.nWifiManager.Notificators.NotificationSettings;
import et.nWifiManager.conState.ConnectionStatusEnum;

/** 
 * Message container. includes corrent Connectivity State & output Notification settings
 * @author ET-CS 
 */
public class Message extends NotificationSettings {

  private ConnectionStatusEnum State;
  /**
   * @return the state
   */
  public ConnectionStatusEnum getState() {
    return State;
  }
  /**
   * @param state the state to set
   */
  public void setState(ConnectionStatusEnum state) {
    State = state;
  }
  
  public boolean isError=false;
  public boolean isSkip=false;
  
  public Message(){
  }
  public Message(CharSequence Text){ 
    Feed(Text); 
  }
  public Message(ConnectionStatusEnum state, CharSequence Text){
    this(Text);
    this.State = state;
  }  
  public Message(CharSequence TickerText, CharSequence ContentTitle, CharSequence ContentText){
    setTickerText(TickerText);
    setContentTitle(ContentTitle);
    setContentText(ContentText);
  }  
  public Message(boolean error, CharSequence TickerText, CharSequence ContentTitle, CharSequence ContentText){
    this(TickerText, ContentTitle, ContentText);
    if (error==false) {
      isSkip=true;
    }
    else{
      isError = error;  
    }
  }
  public Message(ConnectionStatusEnum state, CharSequence TickerText, CharSequence ContentTitle, CharSequence ContentText){
    Feed(TickerText, ContentTitle, ContentTitle);
    this.State = state;
  }
  public void Feed(CharSequence Text) {
    setTickerText(Text);
    setContentTitle(Text);
    setContentText(Text);
  }
  public void Feed(String string) {
    setTickerText(string);
    setContentTitle(string);
    setContentText(string);
  }
  public void Feed(CharSequence TickerText, CharSequence ContentTitle, CharSequence ContentText) {
    setTickerText(TickerText);
    setContentTitle(ContentTitle);
    setContentText(ContentText);
  }
  public void Feed(ConnectionStatusEnum state, String string) {
    Feed(string);
    this.State = state;
  }

  
}




Java Source Code List

et.nWifiManager.AnalyzeService.java
et.nWifiManager.ConnectivityBroadcastReceiver.java
et.nWifiManager.Constants.java
et.nWifiManager.Hardware.java
et.nWifiManager.LauncerActivity.java
et.nWifiManager.MyApplication.java
et.nWifiManager.PreferencesActivity.java
et.nWifiManager.Analyzers.AnalyzerInterface.java
et.nWifiManager.Analyzers.BrutalAnalyzer.java
et.nWifiManager.Analyzers.ContextWrapperIntentAnalyzerBase.java
et.nWifiManager.Analyzers.IntentAnalyzerInterface.java
et.nWifiManager.Analyzers.IntentAnalyzer.java
et.nWifiManager.Message.Message.java
et.nWifiManager.Message.Messages.java
et.nWifiManager.Notificators.NotificationSettings.java
et.nWifiManager.Notificators.Notificator.java
et.nWifiManager.Notificators.SystemNotificator.java
et.nWifiManager.conState.ConnectionStatusEnum.java