From c3fa8c48a6dbe566a69f78ba437a45faa71e987f Mon Sep 17 00:00:00 2001 From: Niklas Date: Tue, 3 Aug 2021 10:27:07 +0200 Subject: [PATCH] Update create_adapter_manually.md --- custom-objects/create_adapter_manually.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom-objects/create_adapter_manually.md b/custom-objects/create_adapter_manually.md index b31468a..4ea4764 100644 --- a/custom-objects/create_adapter_manually.md +++ b/custom-objects/create_adapter_manually.md @@ -24,7 +24,7 @@ class DateTimeAdapter extends TypeAdapter { } ``` -!> As of Hive 1.3.0, all adapters require a `typeId` instance variable! +!> As of Hive 1.3.0, all adapters require a `typeId` instance variable! The custom `typeId` must be an int between `0` and `223`. The `typeId` instance variable assigns the number to be registered to that adapter. It has to be unique between all adapters. The `read()` method is called when your object has to be read from the disk. Use the `BinaryReader` to read all the properties of your object. In the above sample, it is only an `int` containing `millisecondsSinceEpoch`.