public Job(Api api,DroneSettings droneSettings, OmniRecordManager omniRecordManager,CreativePackagesStore creativePackagesStore)
 {
     _creativePackagesStore = creativePackagesStore;
     _omniRecordManager = omniRecordManager;
     _droneSettings = droneSettings;
     _api = api;
 }
 public Job(Api api, LogsStore logsStore, DroneSettings droneSettings, OmniRecordManager omniRecordManager)
 {
     _omniRecordManager = omniRecordManager;
     _logsStore = logsStore;
     _droneSettings = droneSettings;
     _api = api;
 }
 public Job(Framework framework,
     Api api,
     CreativePackagesStore creativePackagesStore,
     OmniRecordManager omniRecordManager,
     MapToCreativePackageCommand mapToCreativePackageCommand,
     DroneSettings droneSettings,
     Logger logger
     )
 {
     _droneSettings = droneSettings;
     _logger = logger;
     _mapToCreativePackageCommand = mapToCreativePackageCommand;
     _omniRecordManager = omniRecordManager;
     _framework = framework;
     _creativePackagesStore = creativePackagesStore;
     _api = api;
 }
Exemple #4
0
        public DealsModule(OmniRecordManager omniRecordManager,DroneSettings droneSettings)
            : base("/deals")
        {
            Get["/{data}"] = call =>
                                 {
                                     string objectString = call.data;
                                     var data = UrlBuilder.DecodeBase64(objectString);

                                     var creativeId = data.BuildRavenId("creatives", 0);
                                     var contactId = data.BuildRavenId("contacts", 1);

                                     var creativeToDealMap = omniRecordManager.Load<CreativeToDealMap>(creativeId);

                                     omniRecordManager.UpdateOrInsert(new ClickAction
                                                                           {
                                                                               ContactId = contactId,
                                                                               CreativeId = creativeId,
                                                                               Date = DateTime.UtcNow,
                                                                               Domain = droneSettings.Domain
                                                                           });

                                     return new RedirectResponse(creativeToDealMap.DealUrl, RedirectResponse.RedirectType.Permanent);
                                 };
        }
 public Job(DroneSettings droneSettings, OmniRecordManager omniRecordManager)
 {
     _omniRecordManager = omniRecordManager;
     _droneSettings = droneSettings;
 }
 public SendCreativePackageCommand(Logger logger, EmailingSettings emailingSettings, DroneSettings droneSettings)
 {
     _logger = logger;
     _droneSettings = droneSettings;
     _emailingSettings = emailingSettings;
 }
Exemple #7
0
 public TopDrone(INancyBootstrapper nancyBootstrapper, Framework framework, DroneSettings droneSettings, ApiCallsSettings apiCallsSettings, Logger logger)
 {
     _apiCallsSettings = apiCallsSettings;
     _logger = logger;
     _framework = framework;
     _droneSettings = droneSettings;
     _nancyBootstrapper = nancyBootstrapper;
 }