Add API portion of account status

Adds PutStatus.java and GetStatus.java for modification of the logged-in
user's status field.

Feature: Issue 4394
Change-Id: Id13241dcd98c46101cea2f2337c1fb731d0465a0
This commit is contained in:
Kasper Nilsson
2017-01-27 13:51:07 -08:00
parent f3837bd5df
commit eb64a0ae1e
12 changed files with 239 additions and 1 deletions

View File

@@ -66,6 +66,8 @@ public interface AccountApi {
void addEmail(EmailInput input) throws RestApiException;
void setStatus(String status) throws RestApiException;
List<SshKeyInfo> listSshKeys() throws RestApiException;
SshKeyInfo addSshKey(String key) throws RestApiException;
void deleteSshKey(int seq) throws RestApiException;
@@ -184,6 +186,11 @@ public interface AccountApi {
throw new NotImplementedException();
}
@Override
public void setStatus(String status) {
throw new NotImplementedException();
}
@Override
public List<SshKeyInfo> listSshKeys() {
throw new NotImplementedException();

View File

@@ -24,6 +24,7 @@ public class AccountInfo {
public String username;
public List<AvatarInfo> avatars;
public Boolean _moreAccounts;
public String status;
public AccountInfo(Integer id) {
this._accountId = id;