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

Make digital twins project use ETag consistently rather than Etag #16926

Merged
merged 1 commit into from
Oct 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public String getId() {
* Gets a string representing a weak ETag for the entity that this request performs an operation against, as per RFC7232.
* @return A string representing a weak ETag for the entity that this request performs an operation against, as per RFC7232.
*/
public String getEtag() {
public String getETag() {
return twinETag;
}

Expand All @@ -69,7 +69,7 @@ public String getEtag() {
* @param twinETag A string representing a weak ETag for the entity that this request performs an operation against, as per RFC7232.
* @return The BasicDigitalTwin object itself.
*/
public BasicDigitalTwin setEtag(String twinETag) {
public BasicDigitalTwin setETag(String twinETag) {
this.twinETag = twinETag;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public static void runComponentSample() throws JsonProcessingException {
HashMap component1 = mapper.readValue(component1RawText, HashMap.class);

ConsoleLogger.print("Retrieved digital twin using generic API to use built in deserialization into a BasicDigitalTwin with Id: " + basicDigitalTwin.getId() + ":\n\t"
+ "Etag: " + basicDigitalTwin.getEtag() + "\n\t"
+ "ETag: " + basicDigitalTwin.getETag() + "\n\t"
+ "Prop1: " + basicDigitalTwin.getContents().get("Prop1") + "\n\t"
+ "Prop2: " + basicDigitalTwin.getContents().get("Prop2") + "\n\t"
+ "ComponentProp1: " + component1.get("ComponentProp1") + "\n\t"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ public CustomDigitalTwin setId(String id) {
return this;
}

public String getEtag() {
public String getETag() {
return etag;
}

public CustomDigitalTwin setEtag(String etag) {
public CustomDigitalTwin setETag(String etag) {
this.etag = etag;
return this;
}
Expand Down