blob: 0a709070c6f4f824220eada92a4743d7d0a50cfa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
package org.apache.tuscany.sca.sample.comet;
import java.util.Date;
import org.apache.tuscany.sca.sample.comet.model.Location;
import org.apache.tuscany.sca.sample.comet.model.Response;
import org.oasisopen.sca.annotation.Service;
@Service(PrecipitationService.class)
public class PrecipitationServiceImpl implements PrecipitationService {
@Override
public Response getPrecipitation(Location location) {
Response response = new Response();
response.setDate(new Date());
response.setData(Helper.randomInt(100) + "%");
return response;
}
}
|