gcm

Google Cloud Messaging (GCM) for D

Members

Enums

GCMPriority
enum GCMPriority
Undocumented in source.
asString
enum asString

Functions

add
bool add(DeviceGroup group, string[] registration_ids)

Functions for managing device groups

create
bool create(DeviceGroup group, string[] registration_ids)

Functions for managing device groups

gcmessage
GCMessage gcmessage(T data)
GCMessage gcmessage(GCMNotification ntf, T data)

Convenience function for GCMessage. Converts T to JSONValue.

remove
bool remove(DeviceGroup group, string[] registration_ids)

Functions for managing device groups

sendDirect
Nullable!MulticastMessageResponse sendDirect(string key, string receiver, GCMessage message)

Wrapper around sendMulticast since GCM's answers inconsistent for direct messages. Sometimes you get plain text instead of JSON.

sendGroup
Nullable!DeviceGroupResponse sendGroup(DeviceGroup group, GCMessage message)
Undocumented in source. Be warned that the author may not have intended to support it.
sendGroup
Nullable!DeviceGroupResponse sendGroup(string key, string to, GCMessage message)
Undocumented in source. Be warned that the author may not have intended to support it.
sendMulticast
Nullable!MulticastMessageResponse sendMulticast(string key, Range registration_ids, GCMessage message)
Undocumented in source. Be warned that the author may not have intended to support it.
sendTopic
Nullable!TopicMessageResponse sendTopic(string key, string topic, GCMessage message)
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

DeviceGroup
struct DeviceGroup
DeviceGroupResponse
struct DeviceGroupResponse
Undocumented in source.
GCMNotification
struct GCMNotification
Undocumented in source.
GCMResponse
struct GCMResponse
GCMResponseResult
struct GCMResponseResult
GCMessage
struct GCMessage
Undocumented in source.
MulticastMessageResponse
struct MulticastMessageResponse
Undocumented in source.
MulticastMessageResult
struct MulticastMessageResult
Undocumented in source.
TopicMessageResponse
struct TopicMessageResponse
Undocumented in source.

Meta

License

Subject to the terms of the MIT license, as written in the included LICENSE file.

Authors

sigod