Conscience Core
Public Member Functions | Static Public Member Functions | List of all members
conscience_core::ai::notifications::NotificationInstruction Struct Reference

#include <CscNotifications.h>

Public Member Functions

 operator string () const
 
NotificationType getType () const
 
const map< string, string > & getParameters () const
 
string getParameter (const string &key) const
 
 NotificationInstruction (NotificationType type, const map< string, string > &parameters)
 

Static Public Member Functions

static ptr< NotificationInstructionbyPhoneCall (const string &message, const vector< string > &recipientNumbers, const map< string, string > &additionalInfos={})
 
static ptr< NotificationInstructiononBackend (const string &protocol, const string &host, const string &path="", optional< int > port={})
 
static ptr< NotificationInstructionbyNativePhoneNotification (const string &type, const map< string, string > &additionalParameters={})
 
static ptr< NotificationInstructionbyEmail (const string &title, const string &body, const vector< string > &recipientEmails, const map< string, string > &additionalParameters={})
 
static vector< ptr< NotificationInstruction > > fromMap (const map< string, string > &parameters)
 

Constructor & Destructor Documentation

◆ NotificationInstruction()

conscience_core::ai::notifications::NotificationInstruction::NotificationInstruction ( NotificationType  type,
const map< string, string > &  parameters 
)

Member Function Documentation

◆ byEmail()

ptr< NotificationInstruction > conscience_core::ai::notifications::NotificationInstruction::byEmail ( const string &  title,
const string &  body,
const vector< string > &  recipientEmails,
const map< string, string > &  additionalParameters = {} 
)
static

◆ byNativePhoneNotification()

ptr< NotificationInstruction > conscience_core::ai::notifications::NotificationInstruction::byNativePhoneNotification ( const string &  type,
const map< string, string > &  additionalParameters = {} 
)
static

◆ byPhoneCall()

ptr< NotificationInstruction > conscience_core::ai::notifications::NotificationInstruction::byPhoneCall ( const string &  message,
const vector< string > &  recipientNumbers,
const map< string, string > &  additionalInfos = {} 
)
static

◆ fromMap()

vector< ptr< NotificationInstruction > > conscience_core::ai::notifications::NotificationInstruction::fromMap ( const map< string, string > &  parameters)
static

◆ getParameter()

string conscience_core::ai::notifications::NotificationInstruction::getParameter ( const string &  key) const

◆ getParameters()

const map< string, string > & conscience_core::ai::notifications::NotificationInstruction::getParameters ( ) const

◆ getType()

NotificationType conscience_core::ai::notifications::NotificationInstruction::getType ( ) const

◆ onBackend()

ptr< NotificationInstruction > conscience_core::ai::notifications::NotificationInstruction::onBackend ( const string &  protocol,
const string &  host,
const string &  path = "",
optional< int >  port = {} 
)
static

◆ operator string()

conscience_core::ai::notifications::NotificationInstruction::operator string ( ) const

The documentation for this struct was generated from the following files: