Skip to content

Commit 06cd1a6

Browse files
committed
Fixing order of created_at and updated_at for space/location models.
1 parent 67dbf14 commit 06cd1a6

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

src/main/java/com/robinpowered/sdk/model/Location.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ public class Location implements IdentifiableApiResponseModel {
2626
// Immutable
2727
private final int id;
2828
private final int accountId;
29-
private final DateTime updatedAt;
3029
private final DateTime createdAt;
30+
private final DateTime updatedAt;
3131

3232
// Mutable
3333
private String name;
@@ -42,11 +42,11 @@ public class Location implements IdentifiableApiResponseModel {
4242
* Methods
4343
*/
4444

45-
public Location(int id, int accountId, DateTime updatedAt, DateTime createdAt) {
45+
public Location(int id, int accountId, DateTime createdAt, DateTime updatedAt) {
4646
this.id = id;
4747
this.accountId = accountId;
48-
this.updatedAt = updatedAt;
4948
this.createdAt = createdAt;
49+
this.updatedAt = updatedAt;
5050
}
5151

5252
@Override
@@ -121,13 +121,13 @@ public boolean equals(Object o) {
121121
Location location = (Location) o;
122122
return Objects.equal(id, location.id) &&
123123
Objects.equal(accountId, location.accountId) &&
124-
Objects.equal(updatedAt, location.updatedAt) &&
125-
Objects.equal(createdAt, location.createdAt);
124+
Objects.equal(createdAt, location.createdAt) &&
125+
Objects.equal(updatedAt, location.updatedAt);
126126
}
127127

128128
@Override
129129
public int hashCode() {
130-
return Objects.hashCode(id, accountId, updatedAt, createdAt);
130+
return Objects.hashCode(id, accountId, createdAt, updatedAt);
131131
}
132132

133133
@Override

src/main/java/com/robinpowered/sdk/model/Space.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ public class Space implements IdentifiableApiResponseModel {
2828
private final int id;
2929
private final int locationId;
3030
private final boolean isDibsed;
31-
private final DateTime updatedAt;
3231
private final DateTime createdAt;
32+
private final DateTime updatedAt;
3333

3434
// Mutable
3535
private String name;
@@ -50,12 +50,12 @@ public class Space implements IdentifiableApiResponseModel {
5050
* Methods
5151
*/
5252

53-
public Space(int id, int locationId, boolean isDibsed, DateTime updatedAt, DateTime createdAt) {
53+
public Space(int id, int locationId, boolean isDibsed, DateTime createdAt, DateTime updatedAt) {
5454
this.id = id;
5555
this.locationId = locationId;
5656
this.isDibsed = isDibsed;
57-
this.updatedAt = updatedAt;
5857
this.createdAt = createdAt;
58+
this.updatedAt = updatedAt;
5959
}
6060

6161
@Override
@@ -167,13 +167,13 @@ public boolean equals(Object o) {
167167
return Objects.equal(id, space.id) &&
168168
Objects.equal(locationId, space.locationId) &&
169169
Objects.equal(isDibsed, space.isDibsed) &&
170-
Objects.equal(updatedAt, space.updatedAt) &&
171-
Objects.equal(createdAt, space.createdAt);
170+
Objects.equal(createdAt, space.createdAt) &&
171+
Objects.equal(updatedAt, space.updatedAt);
172172
}
173173

174174
@Override
175175
public int hashCode() {
176-
return Objects.hashCode(id, locationId, isDibsed, updatedAt, createdAt);
176+
return Objects.hashCode(id, locationId, isDibsed, createdAt, updatedAt);
177177
}
178178

179179
@Override

0 commit comments

Comments
 (0)