コード例 #1
0
ファイル: AndroidConfig.cs プロジェクト: sunche/FCMessaging
        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);
 }