Home | History | Annotate | Download | only in pingme
      1 /*
      2  * Copyright (C) 2012 The Android Open Source Project
      3  *
      4  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
      5  * in compliance with the License. You may obtain a copy of the License at
      6  *
      7  * http://www.apache.org/licenses/LICENSE-2.0
      8  *
      9  * Unless required by applicable law or agreed to in writing, software distributed under the License
     10  * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
     11  * or implied. See the License for the specific language governing permissions and limitations under
     12  * the License.
     13  */
     14 
     15 package com.example.android.pingme;
     16 
     17 /**
     18  *
     19  * A set of constants used by all of the components in this application. To use these constants
     20  * the components implement the interface.
     21  */
     22 
     23 public final class CommonConstants {
     24 
     25     public CommonConstants() {
     26 
     27         // don't allow the class to be instantiated
     28     }
     29 
     30     // Milliseconds in the snooze duration, which translates
     31     // to 20 seconds.
     32     public static final int SNOOZE_DURATION = 20000;
     33     public static final int DEFAULT_TIMER_DURATION = 10000;
     34     public static final String ACTION_SNOOZE = "com.example.android.pingme.ACTION_SNOOZE";
     35     public static final String ACTION_DISMISS = "com.example.android.pingme.ACTION_DISMISS";
     36     public static final String ACTION_PING = "com.example.android.pingme.ACTION_PING";
     37     public static final String EXTRA_MESSAGE= "com.example.android.pingme.EXTRA_MESSAGE";
     38     public static final String EXTRA_TIMER = "com.example.android.pingme.EXTRA_TIMER";
     39     public static final int NOTIFICATION_ID = 001;
     40     public static final String DEBUG_TAG = "PingMe";
     41 }
     42