mirror of
https://github.com/esiur/esiur-dart.git
synced 2025-06-27 14:53:11 +00:00
bugfix
This commit is contained in:
@ -353,7 +353,7 @@ class Codec {
|
||||
IResource resource, DistributedConnection? connection) {
|
||||
if (connection == null) return false;
|
||||
if (resource is DistributedResource) {
|
||||
if (resource.connection == connection) return true;
|
||||
if (resource.distributedResourceConnection == connection) return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
@ -306,7 +306,7 @@ class DataSerializer {
|
||||
var rt = new DC(4);
|
||||
|
||||
if (Codec.isLocalResource(resource, connection)) {
|
||||
rt.setUint32(0, (resource as DistributedResource).id ?? 0);
|
||||
rt.setUint32(0, (resource as DistributedResource).distributedResourceInstanceId ?? 0);
|
||||
return DataSerializerComposeResults(
|
||||
TransmissionTypeIdentifier.ResourceLocal, rt);
|
||||
} else {
|
||||
|
@ -1,4 +1,3 @@
|
||||
|
||||
import 'IEnum.dart';
|
||||
import '../Resource/Template/TemplateType.dart';
|
||||
import 'IRecord.dart';
|
||||
@ -35,7 +34,7 @@ class RepresentationTypeIdentifier {
|
||||
Record = 0x15,
|
||||
List = 0x16,
|
||||
Map = 0x17,
|
||||
Enum = 0x18,
|
||||
Enum = 0x44,
|
||||
TypedResource = 0x45, // Followed by UUID
|
||||
TypedRecord = 0x46, // Followed by UUID
|
||||
TypedList = 0x48, // Followed by element type
|
||||
|
Reference in New Issue
Block a user