Show / Hide Table of Contents

Class Message

Message to send by Firebase Cloud Messaging Service.

Inheritance
object
Message
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.FirebaseCloudMessaging.v1.Data
Assembly: Google.Apis.FirebaseCloudMessaging.v1.dll
Syntax
public class Message : IDirectResponseSchema

Properties

Android

Input only. Android specific options for messages sent through FCM connection server.

Declaration
[JsonProperty("android")]
public virtual AndroidConfig Android { get; set; }
Property Value
Type Description
AndroidConfig

Apns

Input only. Apple Push Notification Service specific options.

Declaration
[JsonProperty("apns")]
public virtual ApnsConfig Apns { get; set; }
Property Value
Type Description
ApnsConfig

Condition

Condition to send a message to, e.g. "'foo' in topics && 'bar' in topics".

Declaration
[JsonProperty("condition")]
public virtual string Condition { get; set; }
Property Value
Type Description
string

Data

Input only. Arbitrary key/value payload, which must be UTF-8 encoded. The key should not be a reserved word ("from", "message_type", or any word starting with "google." or "gcm.notification."). When sending payloads containing only data fields to iOS devices, only normal priority ("apns-priority": "5") is allowed in ApnsConfig.

Declaration
[JsonProperty("data")]
public virtual IDictionary<string, string> Data { get; set; }
Property Value
Type Description
IDictionary<string, string>

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
string

FcmOptions

Input only. Template for FCM SDK feature options to use across all platforms.

Declaration
[JsonProperty("fcmOptions")]
public virtual FcmOptions FcmOptions { get; set; }
Property Value
Type Description
FcmOptions

Name

Output Only. The identifier of the message sent, in the format of projects/*/messages/{message_id}.

Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
Type Description
string

Notification

Input only. Basic notification template to use across all platforms.

Declaration
[JsonProperty("notification")]
public virtual Notification Notification { get; set; }
Property Value
Type Description
Notification

Token

Registration token to send a message to.

Declaration
[JsonProperty("token")]
public virtual string Token { get; set; }
Property Value
Type Description
string

Topic

Topic name to send a message to, e.g. "weather". Note: "/topics/" prefix should not be provided.

Declaration
[JsonProperty("topic")]
public virtual string Topic { get; set; }
Property Value
Type Description
string

Webpush

Input only. Webpush protocol options.

Declaration
[JsonProperty("webpush")]
public virtual WebpushConfig Webpush { get; set; }
Property Value
Type Description
WebpushConfig

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX