Skip to content
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

Convert ModelData.model to String #14702

Merged
merged 11 commits into from
Sep 2, 2020
Merged

Conversation

azabbasi
Copy link
Contributor

@azabbasi azabbasi commented Sep 1, 2020

In this PR, I have duplicated the ModelData file and named it DigitalTwinModelData and changed the model type from Object to String along with a constructor that takes in the ModelData.
changed all API surfaces that exposed the ModelData type to now use DigitalTwinModelData.

@bikamani
Copy link
Contributor

bikamani commented Sep 2, 2020

have

Just to understand, why are we making this change?

@azabbasi
Copy link
Contributor Author

azabbasi commented Sep 2, 2020

have

Just to understand, why are we making this change?

ModelData.model is of type Object in the generated code. We want to make it a String. This is the recommended approach from the SDK team.

Copy link
Member

@abhipsaMisra abhipsaMisra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some small comments, looks good otherwise!

@azabbasi
Copy link
Contributor Author

azabbasi commented Sep 2, 2020

/azp run java - digitaltwins - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@azabbasi azabbasi merged commit b68dd3d into master Sep 2, 2020
@azabbasi azabbasi deleted the feature/adt/azabbasi/ModelsSamples branch September 2, 2020 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants