Android Open Source - o365api-android-get-events-app Constants






From Project

Back to project page o365api-android-get-events-app.

License

The source code is released under:

MIT License

If you think the Android project o365api-android-get-events-app listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.example.mattleib.myinboxapplication;
//w w w .j a  v  a 2s. c  om
/**
 * Created by mattleib on 1/23/2015.
 */
public class Constants {

    /**
     * Production Values
     */
    public static final String AAD_Client_ID ="af9ef21e-b71b-4b01-9eb6-1d16a8c9ed22";
    //public static String AAD_RedirectUri = "app://com.example.mattleib.myinboxapplication";
    public static final String AAD_RedirectUri = "https://myinboxapplication";
    public static final String AAD_Authority = "https://login.windows.net/common";
    public static final String O365_ExchangeOnline = "https://outlook.office365.com/";
    public static final String O365_UserHint = "";
    //public static final String O365_UserHint = "garthf@oauthplay.onmicrosoft.com";
    public static final String O365_EventsQueryTemplate = "https://outlook.office365.com/api/v1.0/me/calendarview?startdatetime=%s&enddatetime=%s&$orderby=Start";
    //public static final String O365_EventsQueryTemplate = "https://outlook.office365.com/api/v1.0/me/calendarview?startdatetime=%s&enddatetime=%s&$top=50&$orderby=Start";
    //public static final String O365_EventsQueryTemplate = "https://outlook.office365.com/api/v1.0/me/calendarview?startdatetime=%sT%sZ&enddatetime=%sT%sZ&$top=50&$orderby=Start";

    /**
     * PPE Values
     */
    public static final String PPE_AAD_Client_ID ="658a894e-1b57-40da-a350-061462eb5b77";
    public static final String PPE_AAD_RedirectUri = "https://myinboxapplication";
    public static final String PPE_AAD_Authority = "https://login.windows-ppe.net/common";
    public static final String PPE_O365_ExchangeOnline = "https://sdfpilot.outlook.com/";
    public static final String PPE_O365_UserHint = "";
    //public static final String PPE_O365_UserHint = "mattleib@ntdev.microsoft.com";
    public static final String PPE_O365_EventsQueryTemplate = "https://sdfpilot.outlook.com/api/v1.0/me/calendarview?startdatetime=%s&enddatetime=%s&$orderby=Start";
    //public static final String PPE_O365_EventsQueryTemplate = "https://sdfpilot.outlook.com/api/v1.0/me/calendarview?startdatetime=%s&enddatetime=%s&$top=50&$orderby=Start";
    //public static final String PPE_O365_EventsQueryTemplate = "https://sdfpilot.outlook.com/api/v1.0/me/calendarview?startdatetime=%sT%sZ&enddatetime=%sT%sZ&$top=50&$orderby=Start";

    /**
     * Program Runtime constants
     */
    public static class PreferenceKeys {
        public static final String CalendarTimeSpan = "PREF_CALENDAR_SPAN";
        public static final String UsePPE = "PREF_USEPPE";
        public static final String UseCoolColors = "PREF_USECOOL";
        public static final String RefreshToken = "PREF_REFRESHTOKEN";
        public static final String DoNotShowPastEvents = "PREF_NOPASTEVENTS";
    }

    public static final int PICK_PREFERENCE_REQUEST = 1;
    public static final int IDX_PROD = 0;
    public static final int IDX_PPE = 1;

    public static final long OneMinuteInMilliseconds = 60000;
    public static final long OneHourInMilliseconds = 3600000;

    public static class VisualCues {
        public static final String EventNow = "==> ";
    }
}




Java Source Code List

com.example.mattleib.myinboxapplication.AppConfig.java
com.example.mattleib.myinboxapplication.AppHelper.java
com.example.mattleib.myinboxapplication.ApplicationTest.java
com.example.mattleib.myinboxapplication.Constants.java
com.example.mattleib.myinboxapplication.DataTypes.java
com.example.mattleib.myinboxapplication.EmailAddress.java
com.example.mattleib.myinboxapplication.EmptyItem.java
com.example.mattleib.myinboxapplication.EventItem.java
com.example.mattleib.myinboxapplication.EventItemsFragment.java
com.example.mattleib.myinboxapplication.Helpers.java
com.example.mattleib.myinboxapplication.InMemoryCacheStore.java
com.example.mattleib.myinboxapplication.Item.java
com.example.mattleib.myinboxapplication.LocalDateTimeConverter.java
com.example.mattleib.myinboxapplication.Location.java
com.example.mattleib.myinboxapplication.MainActivity.java
com.example.mattleib.myinboxapplication.Organizer.java
com.example.mattleib.myinboxapplication.PreferenceSetting.java
com.example.mattleib.myinboxapplication.PreferenceSettings.java
com.example.mattleib.myinboxapplication.SectionItem.java
com.example.mattleib.myinboxapplication.SettingsActivity.java
com.example.mattleib.myinboxapplication.SettingsFragment.java
com.example.mattleib.myinboxapplication.SimpleAlertDialog.java