-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Remove deprecated method getInactiveDevice and its dependents - Redefine DeviceInactive constructor - Add inactive threshold, start time and pagination ability
- Loading branch information
Showing
5 changed files
with
69 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 0 additions & 24 deletions
24
suripu-core/src/main/java/com/hello/suripu/core/db/mappers/DeviceInactiveMapper.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
suripu-core/src/main/java/com/hello/suripu/core/models/DeviceInactivePaginator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package com.hello.suripu.core.models; | ||
|
||
/** | ||
* Created by zet on 12/11/14. | ||
*/ | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
import java.util.List; | ||
|
||
public class DeviceInactivePaginator { | ||
|
||
@JsonProperty("current_page") | ||
public final Integer currentPage; | ||
@JsonProperty("total_pages") | ||
public final Integer totalPages; | ||
@JsonProperty("content") | ||
public final List<DeviceInactive> content; | ||
|
||
public DeviceInactivePaginator(final Integer currentPage, final Integer totalPages, final List<DeviceInactive> content) { | ||
this.currentPage = currentPage; | ||
this.totalPages = totalPages; | ||
this.content = content; | ||
} | ||
} |