Last change
on this file since 77 was
77,
checked in by psniegowski, 11 years ago
|
Add new java codebase.
|
File size:
327 bytes
|
Rev | Line | |
---|
[77] | 1 | package com.framsticks.communication; |
---|
| 2 | |
---|
| 3 | import com.framsticks.util.StateFunctor; |
---|
| 4 | |
---|
| 5 | /** |
---|
| 6 | * @author Piotr Sniegowski |
---|
| 7 | */ |
---|
| 8 | public abstract class StateCallback implements ResponseCallback, StateFunctor { |
---|
| 9 | @Override |
---|
| 10 | public void process(Response response) { |
---|
| 11 | call(response.getOk() ? null : new Exception(response.getComment())); |
---|
| 12 | } |
---|
| 13 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.