-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove DigitalTwins Writable property, rewrite Basic classes to match .NET #16896
Conversation
); | ||
|
||
String basicDigitalTwinPayload = mapper.writeValueAsString(basicTwin); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This field wasn't used anywhere, so I deleted it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update the sample/readme file as well. We have a task to make that automated but in the meanwhile we should manually update those snippets.
*/ | ||
public class BasicDigitalTwinPropertyMetadata { | ||
@JsonProperty(value = DigitalTwinsJsonPropertyNames.METADATA_PROPERTY_LAST_UPDATE_TIME, required = true) | ||
private OffsetDateTime lastUpdatedOn; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know we decided to use lastUpdatedOn
, I just wanted to say I think lastUpdatedTime
might have been a better property name. goodbye
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sadly this is the name the service choose, so I'm not looking to change it.
Scratch that, the service went with "lastUpdateTime" but Azure SDK team prefers we name like the above. We already renamed the digital twins model data class' date time field like this, so it should pass review
Writable property isn't sent by the service anymore, so we don't need it in our serialization types.
Also adding/changing a couple of Basic types to match what we have in .NET such as BasicDigitalTwinComponentMetadata