PageRenderTime 24ms CodeModel.GetById 20ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/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
17package org.jsharkey.sky.webservice;
18
19/**
20 * Data for a specific forecast at a point in time.
21 */
22public class Forecast {
23    boolean alert = false;
24    long validStart = Long.MIN_VALUE;
25    int tempHigh = Integer.MIN_VALUE;
26    int tempLow = Integer.MIN_VALUE;
27    String conditions;
28    String url;
29    
30    /**
31     * Exception to inform callers that we ran into problems while parsing the
32     * forecast returned by the webservice.
33     */
34    public static final class ParseException extends Exception {
35        private static final long serialVersionUID = 1L;
36
37        public ParseException(String detailMessage) {
38            super(detailMessage);
39        }
40
41        public ParseException(String detailMessage, Throwable throwable) {
42            super(detailMessage, throwable);
43        }
44    }
45
46}