/Sky/src/org/jsharkey/sky/webservice/Forecast.java

http://android-sky.googlecode.com/ · Java · 46 lines · 18 code · 6 blank · 22 comment · 0 complexity · c65d26224768378af56978944d26ba30 MD5 · raw file

  1. /*
  2. * Copyright (C) 2009 Jeff Sharkey, http://jsharkey.org/
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. package org.jsharkey.sky.webservice;
  17. /**
  18. * Data for a specific forecast at a point in time.
  19. */
  20. public class Forecast {
  21. boolean alert = false;
  22. long validStart = Long.MIN_VALUE;
  23. int tempHigh = Integer.MIN_VALUE;
  24. int tempLow = Integer.MIN_VALUE;
  25. String conditions;
  26. String url;
  27. /**
  28. * Exception to inform callers that we ran into problems while parsing the
  29. * forecast returned by the webservice.
  30. */
  31. public static final class ParseException extends Exception {
  32. private static final long serialVersionUID = 1L;
  33. public ParseException(String detailMessage) {
  34. super(detailMessage);
  35. }
  36. public ParseException(String detailMessage, Throwable throwable) {
  37. super(detailMessage, throwable);
  38. }
  39. }
  40. }