-
Notifications
You must be signed in to change notification settings - Fork 888
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8e3feb0
commit f55fa91
Showing
25 changed files
with
933 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
|
||
#include "bat/ads/database.h" | ||
|
||
#include <iostream> | ||
#include <utility> | ||
#include <vector> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
vendor/bat-native-ads/src/bat/ads/internal/bundle/creative_daypart_info.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* Copyright (c) 2019 The Brave Authors. All rights reserved. | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
* You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
#ifndef BAT_ADS_INTERNAL_BUNDLE_CREATIVE_DAYPART_INFO_H_ | ||
#define BAT_ADS_INTERNAL_BUNDLE_CREATIVE_DAYPART_INFO_H_ | ||
|
||
#include <string> | ||
#include <vector> | ||
|
||
#include "bat/ads/internal/time_util.h" | ||
|
||
namespace ads { | ||
|
||
struct CreativeDaypartInfo { | ||
std::string dow = "0123456"; | ||
int start_minute = 0; | ||
int end_minute = | ||
(base::Time::kMinutesPerHour * base::Time::kHoursPerDay) - 1; | ||
}; | ||
|
||
using CreativeDaypartList = std::vector<CreativeDaypartInfo>; | ||
|
||
} // namespace ads | ||
|
||
#endif // BAT_ADS_INTERNAL_CATALOG_CATALOG_DAYPART_INFO_H_ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 0 additions & 24 deletions
24
vendor/bat-native-ads/src/bat/ads/internal/catalog/catalog_day_part_info.h
This file was deleted.
Oops, something went wrong.
27 changes: 27 additions & 0 deletions
27
vendor/bat-native-ads/src/bat/ads/internal/catalog/catalog_daypart_info.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* Copyright (c) 2019 The Brave Authors. All rights reserved. | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
* You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
#ifndef BAT_ADS_INTERNAL_CATALOG_CATALOG_DAYPART_INFO_H_ | ||
#define BAT_ADS_INTERNAL_CATALOG_CATALOG_DAYPART_INFO_H_ | ||
|
||
#include <string> | ||
#include <vector> | ||
|
||
#include "bat/ads/internal/time_util.h" | ||
|
||
namespace ads { | ||
|
||
struct CatalogDaypartInfo { | ||
std::string dow = "0123456"; | ||
int start_minute = 0; | ||
int end_minute = | ||
(base::Time::kMinutesPerHour * base::Time::kHoursPerDay) - 1; | ||
}; | ||
|
||
using CatalogDaypartList = std::vector<CatalogDaypartInfo>; | ||
|
||
} // namespace ads | ||
|
||
#endif // BAT_ADS_INTERNAL_CATALOG_CATALOG_DAYPART_INFO_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.