Skip to content

Commit

Permalink
Merge pull request #2883 from brave/contribution-info-refactor
Browse files Browse the repository at this point in the history
Remove export and expose mojo type
  • Loading branch information
jdkuki committed Jul 9, 2019
2 parents b45548c + df9d20c commit 08aa62d
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions vendor/bat-native-ledger/include/bat/ledger/publisher_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,19 +81,8 @@ LEDGER_EXPORT struct ActivityInfoFilter {
uint32_t min_visits;
};

LEDGER_EXPORT struct ContributionInfo {
ContributionInfo() {}
ContributionInfo(const double &value_, const uint64_t& date_):
value(value_),
date(date_) {}

const std::string ToJson() const;
bool loadFromJson(const std::string& json);

std::string publisher; // Filled only for recurrent tips
double value;
uint64_t date;
};
using ContributionInfo = mojom::ContributionInfo;
using ContributionInfoPtr = mojom::ContributionInfoPtr;

} // namespace ledger

Expand Down

0 comments on commit 08aa62d

Please sign in to comment.