tyiu on Nostr: Sounds similar to what I’m doing with the storage part. I store the serialized JSON ...
Sounds similar to what I’m doing with the storage part. I store the serialized JSON of the Nostr event (and use a value transformer to get the deserialized object) and which relays the event was found into a single model. Then I map those to specific event kind classes on app launch.
Published at
2024-07-31 14:29:21Event JSON
{
"id": "db18d683bb15ad2507448a36f96be96a060316d5e201db0304d85c455029b2e5",
"pubkey": "2779f3d9f42c7dee17f0e6bcdcf89a8f9d592d19e3b1bbd27ef1cffd1a7f98d1",
"created_at": 1722436161,
"kind": 1,
"tags": [
[
"e",
"2b1dda78cb6d202f113e6f924e12fbea90676ff7b27321ebb4f545a3773d43fd",
"wss://relay.nostr.bg/all",
"root"
],
[
"e",
"5c9e373ff7826f6b4328060e20bdbf9e5e523de82e5dc8c436f7ec4a19555fb8",
"",
"reply"
],
[
"p",
"c5cfda98d01f152b3493d995eed4cdb4d9e55a973925f6f9ea24769a5a21e778"
]
],
"content": "Sounds similar to what I’m doing with the storage part. I store the serialized JSON of the Nostr event (and use a value transformer to get the deserialized object) and which relays the event was found into a single model. Then I map those to specific event kind classes on app launch.",
"sig": "ec1c0aa6740a6eecf115421f7117bd7598075062f4ffdfcccb30d82b7fff64a68e26746aabc7beea5512d8641aceb684e6c319af6a89eeec95a909b5f5b852f5"
}