-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #318 from snieguu/master
Version 2.42
- Loading branch information
Showing
13 changed files
with
240 additions
and
32 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
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
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
52 changes: 52 additions & 0 deletions
52
src/main/java/com/testdroid/api/model/APIDeviceFilter.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,52 @@ | ||
package com.testdroid.api.model; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnore; | ||
import com.testdroid.api.APIEntity; | ||
|
||
import javax.xml.bind.annotation.XmlRootElement; | ||
|
||
/** | ||
* @author Michał Szpruta <michal.szpruta@bitbar.com> | ||
*/ | ||
@XmlRootElement | ||
public class APIDeviceFilter extends APIEntity { | ||
|
||
private String name; | ||
|
||
private boolean hidden; | ||
|
||
public APIDeviceFilter() { | ||
} | ||
|
||
public APIDeviceFilter(Long id, String name, boolean hidden) { | ||
super(id); | ||
this.name = name; | ||
this.hidden = hidden; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
public boolean isHidden() { | ||
return hidden; | ||
} | ||
|
||
public void setHidden(boolean hidden) { | ||
this.hidden = hidden; | ||
} | ||
|
||
@Override | ||
@JsonIgnore | ||
protected <T extends APIEntity> void clone(T from) { | ||
APIDeviceFilter apiDeviceFilter = (APIDeviceFilter) from; | ||
cloneBase(from); | ||
this.name = apiDeviceFilter.name; | ||
this.hidden = apiDeviceFilter.hidden; | ||
} | ||
|
||
} |
52 changes: 52 additions & 0 deletions
52
src/main/java/com/testdroid/api/model/APIDeviceFilterGroup.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,52 @@ | ||
package com.testdroid.api.model; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnore; | ||
import com.testdroid.api.APIEntity; | ||
|
||
import javax.xml.bind.annotation.XmlRootElement; | ||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
/** | ||
* @author Michał Szpruta <michal.szpruta@bitbar.com> | ||
*/ | ||
@XmlRootElement | ||
public class APIDeviceFilterGroup extends APIEntity { | ||
|
||
private String name; | ||
|
||
private List<APIDeviceFilter> deviceFilters = new ArrayList<>(); | ||
|
||
public APIDeviceFilterGroup() { | ||
} | ||
|
||
public APIDeviceFilterGroup(Long id, String name) { | ||
super(id); | ||
this.name = name; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
public List<APIDeviceFilter> getDeviceFilters() { | ||
return deviceFilters; | ||
} | ||
|
||
public void setDeviceFilters(List<APIDeviceFilter> deviceFilters) { | ||
this.deviceFilters = deviceFilters; | ||
} | ||
|
||
@Override | ||
@JsonIgnore | ||
protected <T extends APIEntity> void clone(T from) { | ||
APIDeviceFilterGroup apiDeviceFilterGroup = (APIDeviceFilterGroup) from; | ||
cloneBase(from); | ||
this.name = apiDeviceFilterGroup.name; | ||
this.deviceFilters = apiDeviceFilterGroup.deviceFilters; | ||
} | ||
} |
41 changes: 41 additions & 0 deletions
41
src/main/java/com/testdroid/api/model/APIDevicePicker.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,41 @@ | ||
package com.testdroid.api.model; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnore; | ||
import com.testdroid.api.APIEntity; | ||
|
||
import javax.xml.bind.annotation.XmlRootElement; | ||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
/** | ||
* @author Michał Szpruta <michal.szpruta@bitbar.com> | ||
*/ | ||
@XmlRootElement | ||
public class APIDevicePicker extends APIEntity { | ||
|
||
private List<APIDeviceFilterGroup> deviceFilterGroups = new ArrayList<>(); | ||
|
||
public APIDevicePicker() { | ||
} | ||
|
||
public APIDevicePicker(Long id, List<APIDeviceFilterGroup> deviceFilterGroups) { | ||
super(id); | ||
this.deviceFilterGroups = deviceFilterGroups; | ||
} | ||
|
||
public List<APIDeviceFilterGroup> getDeviceFilterGroups() { | ||
return deviceFilterGroups; | ||
} | ||
|
||
public void setDeviceFilterGroups(List<APIDeviceFilterGroup> deviceFilterGroups) { | ||
this.deviceFilterGroups = deviceFilterGroups; | ||
} | ||
|
||
@Override | ||
@JsonIgnore | ||
protected <T extends APIEntity> void clone(T from) { | ||
APIDevicePicker apiDevicePicker = (APIDevicePicker) from; | ||
this.deviceFilterGroups = apiDevicePicker.deviceFilterGroups; | ||
cloneBase(from); | ||
} | ||
} |
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
Oops, something went wrong.