Added ability to scan library in SettingsFragment

This commit is contained in:
CappielloAntonio
2021-08-11 10:58:40 +02:00
parent 0c30e95c31
commit c1d10e6ed0
11 changed files with 239 additions and 22 deletions

View File

@@ -1,39 +1,27 @@
package com.cappielloantonio.play.subsonic.models;
public class ScanStatus {
protected boolean scanning;
protected Long count;
import com.tickaroo.tikxml.annotation.Attribute;
import com.tickaroo.tikxml.annotation.Xml;
/**
* Gets the value of the scanning property.
*/
@Xml
public class ScanStatus {
@Attribute
protected boolean scanning;
@Attribute
protected Long count;
public boolean isScanning() {
return scanning;
}
/**
* Sets the value of the scanning property.
*/
public void setScanning(boolean value) {
this.scanning = value;
}
/**
* Gets the value of the count property.
*
* @return possible object is
* {@link Long }
*/
public Long getCount() {
return count;
}
/**
* Sets the value of the count property.
*
* @param value allowed object is
* {@link Long }
*/
public void setCount(Long value) {
this.count = value;
}

View File

@@ -9,6 +9,7 @@ import com.tickaroo.tikxml.annotation.Xml;
public class SubsonicResponse {
@Element
private Error error;
@Element(name = "scanStatus")
private ScanStatus scanStatus;
@Element(name = "topSongs")
private TopSongs topSongs;