001/** 002 * Copyright 2016 Tampere University of Technology, Pori Department 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package service.tut.pori.apilta.alerts; 017 018/** 019 * definitions for alerts package 020 * 021 */ 022public final class Definitions { 023 /* common */ 024 /** default range for distance calculations, in km */ 025 public static final Double DEFAULT_RANGE = 1D; 026 027 /* methods */ 028 /** service method declaration */ 029 public static final String METHOD_ADD_ALERT = "addAlert"; 030 /** service method declaration */ 031 public static final String METHOD_CREATE_FILE = "createFile"; 032 /** service method declaration */ 033 public static final String METHOD_GET_ALERTS = "getAlerts"; 034 035 /* parameters */ 036 /** service method parameter declaration */ 037 public static final String PARAMETER_ALERT_GROUP_ID = "alert_group_id"; 038 /** service method parameter declaration */ 039 public static final String PARAMETER_ALERT_TYPE = "alert_type"; 040 /** service method parameter declaration */ 041 public static final String PARAMETER_CREATED = "created"; 042 /** service method parameter declaration */ 043 public static final String PARAMETER_RANGE = "range"; 044 045 /* services */ 046 /** service name declaration */ 047 public static final String SERVICE_ALERTS = "alerts"; 048 049 /** 050 * 051 */ 052 private Definitions() { 053 // nothing needed 054 } 055}