Commit 9911cf6
committed
refactor(audience-sdk): name JSON timestamp and round-trip number formats
Replaces the bare format-spec strings "o" and "R" passed to DateTime and float / double ToString
calls with named constants on Constants so the wire-shape requirement reads as a contract rather
than a mystery character.
- Constants.cs: adds IsoTimestampFormat ("o") and RoundTripNumberFormat ("R") with comments noting
the backend schema requirement and the round-trip preservation guarantee.
- MessageBuilder.cs: BuildBase eventTimestamp uses Constants.IsoTimestampFormat.
- Json.cs: float and double serialisation use Constants.RoundTripNumberFormat.
- AudienceSample.UI.cs: log-row export timestamp uses Constants.IsoTimestampFormat.1 parent ce2ddb0 commit 9911cf6
4 files changed
Lines changed: 10 additions & 4 deletions
File tree
- examples/audience/Assets/SampleApp/Scripts
- src/Packages/Audience/Runtime
- Core
- Events
- Utility
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
780 | 780 | | |
781 | 781 | | |
782 | 782 | | |
783 | | - | |
| 783 | + | |
784 | 784 | | |
785 | 785 | | |
786 | 786 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
20 | 26 | | |
21 | 27 | | |
22 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| |||
0 commit comments