Skip to content

Commit

Permalink
adjusted ImmutableGlobabEventFactory to Ditto changes regarding metad…
Browse files Browse the repository at this point in the history
…ata in Events

Signed-off-by: Thomas Jaeckle <thomas.jaeckle@bosch.io>
  • Loading branch information
thjaeckle committed Sep 28, 2020
1 parent 3d257c7 commit cd67e7b
Showing 1 changed file with 22 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,121 +82,122 @@ public static ImmutableGlobalEventFactory getInstance(final JsonSchemaVersion sc

@Override
public ThingCreated thingCreated(final Thing thing) {
return ThingCreated.of(thing, -1, Instant.now(), getDefaultDittoHeaders());
return ThingCreated.of(thing, -1, Instant.now(), getDefaultDittoHeaders(), null);
}

@Override
public ThingDeleted thingDeleted(final ThingId thingId) {
return ThingDeleted.of(thingId, -1, Instant.now(), getDefaultDittoHeaders());
return ThingDeleted.of(thingId, -1, Instant.now(), getDefaultDittoHeaders(), null);
}

@Override
public ThingModified thingModified(final Thing thing) {
return ThingModified.of(thing, -1, Instant.now(), getDefaultDittoHeaders());
return ThingModified.of(thing, -1, Instant.now(), getDefaultDittoHeaders(), null);
}

@Override
public AttributeCreated attributeCreated(final ThingId thingId, final JsonPointer attributePointer,
final JsonValue attributeValue) {
return AttributeCreated.of(thingId, attributePointer, attributeValue, -1, Instant.now(),
getDefaultDittoHeaders());
getDefaultDittoHeaders(), null);
}

@Override
public AttributeDeleted attributeDeleted(final ThingId thingId, final JsonPointer attributePointer) {
return AttributeDeleted.of(thingId, attributePointer, -1, Instant.now(), getDefaultDittoHeaders());
return AttributeDeleted.of(thingId, attributePointer, -1, Instant.now(), getDefaultDittoHeaders(), null);
}

@Override
public AttributeModified attributeModified(final ThingId thingId, final JsonPointer attributePointer,
final JsonValue attributeValue) {
return AttributeModified.of(thingId, attributePointer, attributeValue, -1, Instant.now(),
getDefaultDittoHeaders());
getDefaultDittoHeaders(), null);
}

@Override
public AttributesCreated attributesCreated(final ThingId thingId, final Attributes attributes) {
return AttributesCreated.of(thingId, attributes, -1, Instant.now(), getDefaultDittoHeaders());
return AttributesCreated.of(thingId, attributes, -1, Instant.now(), getDefaultDittoHeaders(), null);
}

@Override
public AttributesDeleted attributesDeleted(final ThingId thingId) {
return AttributesDeleted.of(thingId, -1, Instant.now(), getDefaultDittoHeaders());
return AttributesDeleted.of(thingId, -1, Instant.now(), getDefaultDittoHeaders(), null);
}

@Override
public AttributesModified attributesModified(final ThingId thingId, final Attributes attributes) {
return AttributesModified.of(thingId, attributes, -1, Instant.now(), getDefaultDittoHeaders());
return AttributesModified.of(thingId, attributes, -1, Instant.now(), getDefaultDittoHeaders(), null);
}

@Override
public FeatureCreated featureCreated(final ThingId thingId, final Feature feature) {
return FeatureCreated.of(thingId, feature, -1, Instant.now(), getDefaultDittoHeaders());
return FeatureCreated.of(thingId, feature, -1, Instant.now(), getDefaultDittoHeaders(), null);
}

@Override
public FeatureDeleted featureDeleted(final ThingId thingId, final String featureId) {
return FeatureDeleted.of(thingId, featureId, -1, Instant.now(), getDefaultDittoHeaders());
return FeatureDeleted.of(thingId, featureId, -1, Instant.now(), getDefaultDittoHeaders(), null);
}

@Override
public FeatureModified featureModified(final ThingId thingId, final Feature feature) {
return FeatureModified.of(thingId, feature, -1, Instant.now(), getDefaultDittoHeaders());
return FeatureModified.of(thingId, feature, -1, Instant.now(), getDefaultDittoHeaders(), null);
}

@Override
public FeaturesCreated featuresCreated(final ThingId thingId, final Features features) {
return FeaturesCreated.of(thingId, features, -1, Instant.now(), getDefaultDittoHeaders());
return FeaturesCreated.of(thingId, features, -1, Instant.now(), getDefaultDittoHeaders(), null);
}

@Override
public FeaturesDeleted featuresDeleted(final ThingId thingId) {
return FeaturesDeleted.of(thingId, -1, Instant.now(), getDefaultDittoHeaders());
return FeaturesDeleted.of(thingId, -1, Instant.now(), getDefaultDittoHeaders(), null);
}

@Override
public FeaturesModified featuresModified(final ThingId thingId, final Features features) {
return FeaturesModified.of(thingId, features, -1, Instant.now(), getDefaultDittoHeaders());
return FeaturesModified.of(thingId, features, -1, Instant.now(), getDefaultDittoHeaders(), null);
}

@Override
public FeaturePropertiesCreated featurePropertiesCreated(final ThingId thingId, final String featureId,
final FeatureProperties properties) {
return FeaturePropertiesCreated.of(thingId, featureId, properties, -1, Instant.now(),
getDefaultDittoHeaders());
getDefaultDittoHeaders(), null);
}

@Override
public FeaturePropertiesDeleted featurePropertiesDeleted(final ThingId thingId, final String featureId) {
return FeaturePropertiesDeleted.of(thingId, featureId, -1, Instant.now(), getDefaultDittoHeaders());
return FeaturePropertiesDeleted.of(thingId, featureId, -1, Instant.now(), getDefaultDittoHeaders(),
null);
}

@Override
public FeaturePropertiesModified featurePropertiesModified(final ThingId thingId, final String featureId,
final FeatureProperties properties) {
return FeaturePropertiesModified.of(thingId, featureId, properties, -1, Instant.now(),
getDefaultDittoHeaders());
getDefaultDittoHeaders(), null);
}

@Override
public FeaturePropertyCreated featurePropertyCreated(final ThingId thingId, final String featureId,
final JsonPointer propertyJsonPointer, final JsonValue propertyJsonValue) {
return FeaturePropertyCreated.of(thingId, featureId, propertyJsonPointer, propertyJsonValue, -1,
Instant.now(), getDefaultDittoHeaders());
Instant.now(), getDefaultDittoHeaders(), null);
}

@Override
public FeaturePropertyDeleted featurePropertyDeleted(final ThingId thingId, final String featureId,
final JsonPointer propertyJsonPointer) {
return FeaturePropertyDeleted.of(thingId, featureId, propertyJsonPointer, -1, Instant.now(),
getDefaultDittoHeaders());
getDefaultDittoHeaders(), null);
}

@Override
public FeaturePropertyModified featurePropertyModified(final ThingId thingId, final String featureId,
final JsonPointer propertyJsonPointer, final JsonValue propertyJsonValue) {
return FeaturePropertyModified.of(thingId, featureId, propertyJsonPointer, propertyJsonValue, -1,
Instant.now(), getDefaultDittoHeaders());
Instant.now(), getDefaultDittoHeaders(), null);
}

@Override
Expand Down

0 comments on commit cd67e7b

Please sign in to comment.