Android Open Source - BackbeamAndroid Push Notification






From Project

Back to project page BackbeamAndroid.

License

The source code is released under:

Copyright (c) 2012 Level Apps S.L. <http://backbeam.io> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software...

If you think the Android project BackbeamAndroid 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 io.backbeam;
/*from  w w w . j a v a2  s. c  o m*/
import java.util.HashMap;
import java.util.Map;

public class PushNotification {
  
  private String iosAlert;
  private String iosSound;
  private Integer iosBadge;
  private Map<String, String> iosPayload;
  
  private String androidCollapseKey;
  private Boolean androidDelayWhileIdle;
  private Long androidTimeToLive;
  private Map<String, String> androidData;
  
  public String getAndroidCollapseKey() {
    return androidCollapseKey;
  }

  public void setAndroidCollapseKey(String androidCollapseKey) {
    this.androidCollapseKey = androidCollapseKey;
  }

  public Boolean getAndroidDelayWhileIdle() {
    return androidDelayWhileIdle;
  }

  public void setAndroidDelayWhileIdle(Boolean androidDelayWhileIdle) {
    this.androidDelayWhileIdle = androidDelayWhileIdle;
  }

  public Long getAndroidTimeToLive() {
    return androidTimeToLive;
  }

  public void setAndroidTimeToLive(Long timeToLive) {
    this.androidTimeToLive = timeToLive;
  }

  public Map<String, String> getIosPayload() {
    return iosPayload;
  }
  
  public void addIosPayload(String key, String value) {
    if (iosPayload == null) iosPayload = new HashMap<String, String>();
    iosPayload.put(key, value);
  }

  public void setIosPayload(Map<String, String> iosPayload) {
    this.iosPayload = iosPayload;
  }

  public Map<String, String> getAndroidData() {
    return androidData;
  }

  public void setAndroidData(Map<String, String> androidData) {
    this.androidData = androidData;
  }
  
  public void addAndroidData(String key, String value) {
    if (androidData == null) androidData = new HashMap<String, String>();
    androidData.put(key, value);
  }

  public String getIosAlert() {
    return iosAlert;
  }
  
  public void setIosAlert(String text) {
    this.iosAlert = text;
  }
  
  public String getIosSound() {
    return iosSound;
  }
  
  public void setIosSound(String sound) {
    this.iosSound = sound;
  }
  
  public Integer getIosBadge() {
    return iosBadge;
  }
  
  public void setIosBadge(Integer badge) {
    this.iosBadge = badge;
  }

}




Java Source Code List

io.backbeam.BackbeamException.java
io.backbeam.BackbeamObject.java
io.backbeam.Backbeam.java
io.backbeam.Callback.java
io.backbeam.CollectionConstraint.java
io.backbeam.ControllerRequestCallback.java
io.backbeam.FetchCallback.java
io.backbeam.FetchPolicy.java
io.backbeam.FileUpload.java
io.backbeam.GCMBroadcastReceiver.java
io.backbeam.GCMCallback.java
io.backbeam.GCMIntentService.java
io.backbeam.IntentCallback.java
io.backbeam.JoinResult.java
io.backbeam.Json.java
io.backbeam.ListCallback.java
io.backbeam.Location.java
io.backbeam.NearFetchCallback.java
io.backbeam.ObjectCallback.java
io.backbeam.OperationCallback.java
io.backbeam.PushNotification.java
io.backbeam.Query.java
io.backbeam.RealTimeConnectionListener.java
io.backbeam.RealTimeEventListener.java
io.backbeam.RemoveCallback.java
io.backbeam.RequestCallback.java
io.backbeam.RequestDataCallback.java
io.backbeam.SignupCallback.java
io.backbeam.Utils.java