001/**
002 * Copyright 2018 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.shock;
017
018import service.tut.pori.tasks.datatypes.Task.Visibility;
019
020/**
021 * 
022 *
023 */
024public final class Definitions {
025  /* services */
026  /** service name declaration */
027  public static final String SERVICE_SHOCK = "shock"; 
028  
029  /* methods */
030  /** service method declaration */
031  public static final String METHOD_CREATE_MEASUREMENT = "createMeasurement";
032  /** service method declaration */
033  public static final String METHOD_GET_MEASUREMENTS = "getMeasurements";
034  /** service method declaration */
035  public static final String METHOD_GET_HIGHLIGHTS = "getHighlights";
036  
037  /* parameters */
038  /** service method parameter declaration */
039  public static final String PARAMETER_GROUP_METHOD = "group_method";
040  /** service method parameter declaration */
041  public static final String PARAMETER_GROUP_RANGE = "group_range";
042  /** service method parameter declaration */
043  public static final String PARAMETER_LEVEL = "level";
044  /** service method parameter declaration */
045  public static final String PARAMETER_RANGE = "range";
046  /** service method parameter declaration */
047  public static final String PARAMETER_MIN_MEASUREMENTS = "min_measurements";
048  /** service method parameter declaration */
049  public static final String PARAMETER_TIMESTAMP = "timestamp";
050  
051  /* common */
052  /** default measurement visibility */
053  public static final Visibility DEFAULT_VISIBILITY = Visibility.PRIVATE;
054  
055  /* data groups */
056  /** data group for selecting accelerometer data */
057  public static final String DATA_GROUP_ACCELEROMETER_DATA = "accelerometer_data";
058  /** data group for selecting location data */
059  public static final String DATA_GROUP_LOCATION_DATA = "location_data";
060}