File tree Expand file tree Collapse file tree 6 files changed +36
-1
lines changed
FirebaseAdmin/FirebaseAdmin Expand file tree Collapse file tree 6 files changed +36
-1
lines changed Original file line number Diff line number Diff line change 2
2
obj /
3
3
.vscode /
4
4
.vs /
5
+ .idea /
Original file line number Diff line number Diff line change 1
- <Project Sdk =" Microsoft.NET.Sdk" >
1
+ <Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
4
<Version >1.7.0</Version >
Original file line number Diff line number Diff line change @@ -66,6 +66,12 @@ public sealed class AndroidConfig
66
66
[ JsonProperty ( "notification" ) ]
67
67
public AndroidNotification Notification { get ; set ; }
68
68
69
+ /// <summary>
70
+ /// Gets or sets the FCM options to be included in the message.
71
+ /// </summary>
72
+ [ JsonProperty ( "fcm_options" ) ]
73
+ public FcmOptions FcmOptions { get ; set ; }
74
+
69
75
/// <summary>
70
76
/// Gets or sets the string representation of <see cref="Priority"/> as accepted by the FCM
71
77
/// backend service.
Original file line number Diff line number Diff line change @@ -35,6 +35,12 @@ public sealed class ApnsConfig
35
35
[ JsonProperty ( "headers" ) ]
36
36
public IReadOnlyDictionary < string , string > Headers { get ; set ; }
37
37
38
+ /// <summary>
39
+ /// Gets or sets the FCM options to be included in the message.
40
+ /// </summary>
41
+ [ JsonProperty ( "fcm_options" ) ]
42
+ public FcmOptions FcmOptions { get ; set ; }
43
+
38
44
/// <summary>
39
45
/// Gets or sets the <c>aps</c> dictionary to be included in the APNs payload.
40
46
/// </summary>
Original file line number Diff line number Diff line change
1
+ using Newtonsoft . Json ;
2
+
3
+ namespace FirebaseAdmin . Messaging
4
+ {
5
+ /// <summary>
6
+ /// Represents FCM options.
7
+ /// </summary>
8
+ public class FcmOptions
9
+ {
10
+ /// <summary>
11
+ /// Gets or sets analytics label.
12
+ /// </summary>
13
+ [ JsonProperty ( "analytics_label" ) ]
14
+ public string AnalyticsLabel { get ; set ; }
15
+ }
16
+ }
Original file line number Diff line number Diff line change @@ -80,6 +80,12 @@ public sealed class Message
80
80
[ JsonProperty ( "apns" ) ]
81
81
public ApnsConfig Apns { get ; set ; }
82
82
83
+ /// <summary>
84
+ /// Gets or sets the FCM options to be included in the message.
85
+ /// </summary>
86
+ [ JsonProperty ( "fcm_options" ) ]
87
+ public FcmOptions FcmOptions { get ; set ; }
88
+
83
89
/// <summary>
84
90
/// Gets or sets the formatted representation of the <see cref="Topic"/>. Removes the
85
91
/// <c>/topics/</c> prefix if present. This is what's ultimately sent to the FCM
You can’t perform that action at this time.
0 commit comments