Signal-iOS/SignalServiceKit
Evan Hahn 4675434c6c Add FiatMoney type
This change should have no user impact.

We commonly pair a currency, like USD, and an amount, like 1.23. This
adds the `FiatMoney` struct. It's a simple struct with two fields.

After adding it, I tried to use it everywhere. (It's possible I missed a
spot.)

I think this is a useful change on its own, but it'll be nice for an
upcoming change, too.

See also: [Android's equivalent class][0].

[0]: cb65347bb3/core-util/src/main/java/org/signal/core/util/money/FiatMoney.java (L1)
2022-10-26 17:04:51 -05:00
..
Experience Upgrades Fetch and persist remote megaphones 2022-10-26 15:03:08 -07:00
protobuf Move system contact names to ContactRecord 2022-10-26 15:00:36 -07:00
Resources Handle isComplete during incoming contact syncs 2022-10-19 09:29:52 -07:00
src Add FiatMoney type 2022-10-26 17:04:51 -05:00
tests Add FiatMoney type 2022-10-26 17:04:51 -05:00
.clang-format Update clang-format with AllowShortEnumsOnASingleLine: false 2022-03-14 11:20:20 -07:00
.gitignore
.travis.yml
SignalServiceKit-Prefix.pch Change license to AGPL 2022-10-13 08:25:37 -05:00
SignalServiceKit.h Change license to AGPL 2022-10-13 08:25:37 -05:00