-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
mokiyenk
authored and
mokiyenk
committed
Sep 7, 2014
1 parent
c2d0ee8
commit 305d5f9
Showing
9 changed files
with
189 additions
and
34 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
17 changes: 17 additions & 0 deletions
17
burokrat/app/src/main/java/com/smokiyenko/burokrat/app/DocumentStepsResponse.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,17 @@ | ||
package com.smokiyenko.burokrat.app; | ||
|
||
/** | ||
* Created by s.mokiyenko on 9/7/14. | ||
*/ | ||
public class DocumentStepsResponse { | ||
|
||
private final String[] steps; | ||
|
||
public DocumentStepsResponse(String[] steps) { | ||
this.steps = steps; | ||
} | ||
|
||
public String[] getSteps() { | ||
return steps; | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
burokrat/app/src/main/java/com/smokiyenko/burokrat/app/DocumentsListResponse.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,19 @@ | ||
package com.smokiyenko.burokrat.app; | ||
|
||
/** | ||
* Created by s.mokiyenko on 9/7/14. | ||
*/ | ||
public class DocumentsListResponse { | ||
|
||
private final String[] documentsList; | ||
|
||
|
||
public DocumentsListResponse(String[] documentsList) { | ||
this.documentsList = documentsList; | ||
} | ||
|
||
public String[] getDocumentsList() { | ||
return documentsList; | ||
} | ||
|
||
} |
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
17 changes: 17 additions & 0 deletions
17
burokrat/app/src/main/java/com/smokiyenko/burokrat/app/RestError.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,17 @@ | ||
package com.smokiyenko.burokrat.app; | ||
|
||
/** | ||
* Created by s.mokiyenko on 9/7/14. | ||
*/ | ||
public class RestError { | ||
|
||
private final String errorMessage; | ||
|
||
public RestError(String errorMessage) { | ||
this.errorMessage = errorMessage; | ||
} | ||
|
||
public String getErrorMessage() { | ||
return errorMessage; | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
burokrat/app/src/main/java/com/smokiyenko/burokrat/app/SessionResponse.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,36 @@ | ||
package com.smokiyenko.burokrat.app; | ||
|
||
import com.google.common.base.Objects; | ||
|
||
/** | ||
* Created by s.mokiyenko on 9/7/14. | ||
*/ | ||
public class SessionResponse { | ||
|
||
private final String jsessionid; | ||
private final String firstName; | ||
private final String secondName; | ||
|
||
public SessionResponse(final String id, final String name, final String sername) { | ||
this.jsessionid = id; | ||
this.firstName = name; | ||
this.secondName = sername; | ||
} | ||
|
||
public String getSecondName() { | ||
return secondName; | ||
} | ||
|
||
public String getFirstName() { | ||
return firstName; | ||
} | ||
|
||
public String getJsessionid() { | ||
return jsessionid; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return Objects.toStringHelper(SessionResponse.class).add("jsessionid", jsessionid).add("firstName", firstName).add("secondName", secondName).toString(); | ||
} | ||
} |