#ifndef JINGLE_NOTIFIER_LISTENER_NOTIFICATION_DEFINES_H_
#define JINGLE_NOTIFIER_LISTENER_NOTIFICATION_DEFINES_H_
#include <string>
#include <vector>
namespace notifier {
struct Subscription {
Subscription();
~Subscription();
bool Equals(const Subscription& other) const;
std::string channel;
std::string from;
};
typedef std::vector<Subscription> SubscriptionList;
bool SubscriptionListsEqual(const SubscriptionList& subscriptions1,
const SubscriptionList& subscriptions2);
struct Recipient {
Recipient();
~Recipient();
bool Equals(const Recipient& other) const;
std::string to;
std::string user_specific_data;
};
typedef std::vector<Recipient> RecipientList;
bool RecipientListsEqual(const RecipientList& recipients1,
const RecipientList& recipients2);
struct Notification {
Notification();
~Notification();
std::string channel;
RecipientList recipients;
std::string data;
bool Equals(const Notification& other) const;
std::string ToString() const;
};
}
#endif