Пример #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);
            }
        }
Пример #2
0
 /// <summary>
 /// Notification to send to android devices.
 /// </summary>
 public Builder Notification(AndroidNotification notification)
 {
     mConfig.Notification = notification;
     return(this);
 }