Esempio n. 1
0
        public AndroidConfig(Builder builder)
        {
            CollapsedKey = builder.mCollapseKey;
            Priority     = builder.mPriority;
            PackageName  = builder.mPackage;
            Notification = builder.mNotification;

            if (builder.mData.Count > 0)
            {
                Data = builder.mData;
            }

            if (builder.mTTL >= 0)
            {
                TimeToLive = String.Format("{0}s", builder.mTTL);
            }
        }
Esempio n. 2
0
 /// <summary>
 /// Notification to send to android devices.
 /// </summary>
 public Builder Notification(AndroidNotification notification)
 {
     mConfig.Notification = notification;
     return(this);
 }