-
Notifications
You must be signed in to change notification settings - Fork 92
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 #31 from nextcloud/change-userinfo-calls
Change userinfo calls
- Loading branch information
Showing
8 changed files
with
346 additions
and
208 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
/** | ||
* Nextcloud Android client application | ||
* | ||
* @author Mario Danic | ||
* Copyright (C) 2017 Nextcloud GmbH. | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
package com.owncloud.android.lib.common; | ||
|
||
import org.parceler.Parcel; | ||
|
||
/** | ||
* Quota data model | ||
*/ | ||
|
||
@Parcel | ||
public class Quota { | ||
public long free; | ||
public long used; | ||
public long total; | ||
public long quota; | ||
public double relative; | ||
|
||
public Quota() { | ||
} | ||
|
||
public Quota(long free, long used, long total, double relative, long quota) { | ||
|
||
this.free = free; | ||
this.used = used; | ||
this.total = total; | ||
this.quota = quota; | ||
this.relative = relative; | ||
} | ||
|
||
public long getFree() { | ||
return free; | ||
} | ||
|
||
public void setFree(long free) { | ||
this.free = free; | ||
} | ||
|
||
public long getUsed() { | ||
return used; | ||
} | ||
|
||
public void setUsed(long used) { | ||
this.used = used; | ||
} | ||
|
||
public long getTotal() { | ||
return total; | ||
} | ||
|
||
public void setTotal(long total) { | ||
this.total = total; | ||
} | ||
|
||
public long getQuota() { | ||
return quota; | ||
} | ||
|
||
public void setQuota(long quota) { | ||
this.quota = quota; | ||
} | ||
|
||
public double getRelative() { | ||
return relative; | ||
} | ||
|
||
public void setRelative(double relative) { | ||
this.relative = relative; | ||
} | ||
} |
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,127 @@ | ||
/** | ||
* Nextcloud Android client application | ||
* | ||
* @author Mario Danic | ||
* Copyright (C) 2017 Nextcloud GmbH. | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
package com.owncloud.android.lib.common; | ||
|
||
import org.parceler.Parcel; | ||
|
||
/** | ||
* User information data model | ||
*/ | ||
|
||
@Parcel | ||
public class UserInfo { | ||
public String id; | ||
public Boolean enabled; | ||
public String displayName; | ||
public String email; | ||
public String phone; | ||
public String address; | ||
public String webpage; | ||
public String twitter; | ||
public Quota quota; | ||
|
||
public UserInfo() { | ||
} | ||
|
||
public UserInfo(String id, Boolean enabled, String displayName, String email, String phone, String address, | ||
String webpage, String twitter, Quota quota) { | ||
this.id = id; | ||
this.enabled = enabled; | ||
this.displayName = displayName; | ||
this.email = email; | ||
this.phone = phone; | ||
this.address = address; | ||
this.webpage = webpage; | ||
this.twitter = twitter; | ||
this.quota = quota; | ||
} | ||
|
||
public String getId() { | ||
return id; | ||
} | ||
|
||
public void setId(String id) { | ||
this.id = id; | ||
} | ||
|
||
public Boolean getEnabled() { | ||
return enabled; | ||
} | ||
|
||
public void setEnabled(Boolean enabled) { | ||
this.enabled = enabled; | ||
} | ||
|
||
public String getDisplayName() { | ||
return displayName; | ||
} | ||
|
||
public void setDisplayName(String displayName) { | ||
this.displayName = displayName; | ||
} | ||
|
||
public String getEmail() { | ||
return email; | ||
} | ||
|
||
public void setEmail(String email) { | ||
this.email = email; | ||
} | ||
|
||
public String getAddress() { | ||
return address; | ||
} | ||
|
||
public void setAddress(String address) { | ||
this.address = address; | ||
} | ||
|
||
public String getWebpage() { | ||
return webpage; | ||
} | ||
|
||
public void setWebpage(String webpage) { | ||
this.webpage = webpage; | ||
} | ||
|
||
public String getTwitter() { | ||
return twitter; | ||
} | ||
|
||
public void setTwitter(String twitter) { | ||
this.twitter = twitter; | ||
} | ||
|
||
public Quota getQuota() { | ||
return quota; | ||
} | ||
|
||
public void setQuota(Quota quota) { | ||
this.quota = quota; | ||
} | ||
|
||
public String getPhone() { | ||
return phone; | ||
} | ||
|
||
public void setPhone(String phone) { | ||
this.phone = phone; | ||
} | ||
} |
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.