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
auto gcmessage(T data)
auto gcmessage(GCMNotification ntf, T data)

Convenience function for GCMessage!Data

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

Functions for managing device groups

sendDirect
Nullable!MulticastMessageResponse sendDirect(string key, string receiver, GCMessage!T 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!T 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!T 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!T 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!T 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(Data = JSONValue)
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