コード例 #1
0
 /// <summary>
 /// Android specific properties.
 /// </summary>
 /// <param name="options"></param>
 /// <returns></returns>
 public NotificationRequestBuilder WithAndroidOptions(AndroidOptions options)
 {
     _request.Android = options;
     return(this);
 }
 /// <summary>
 /// Initializes NotificationRequestBuilder with the specified notification Id.
 /// </summary>
 /// <param name="notificationId">A unique identifier for the request
 /// (if identifier is not unique, a new notification request object is not created).
 /// You can use this identifier later to cancel a request that is still pending.</param>
 public NotificationRequestBuilder(int notificationId)
 {
     NotificationId = notificationId;
     AndroidOptions = new AndroidOptions();
     iOSOptions     = new iOSOptions();
 }
 /// <summary>
 /// Initializes NotificationRequestBuilder with default value.
 /// </summary>
 public NotificationRequestBuilder()
 {
     AndroidOptions = new AndroidOptions();
     iOSOptions     = new iOSOptions();
 }
コード例 #4
0
 /// <summary>
 /// Android specific properties builder.
 /// </summary>
 /// <param name="builder"></param>
 /// <returns></returns>
 public NotificationRequestBuilder WithAndroidOptions(Func <AndroidOptionsBuilder, AndroidOptions> builder)
 {
     AndroidOptions = builder.Invoke(new AndroidOptionsBuilder());
     return(this);
 }