// Path: app/src/main/java/com/microsoft/o365_android_onenote_rest/application/SnippetApp.java
// public class SnippetApp extends Application {
//     /**
//      * The {@link dagger.ObjectGraph} used by Dagger to fulfill <code>@inject</code> annotations
//      *
//      * @see javax.inject.Inject
//      * @see dagger.Provides
//      * @see javax.inject.Singleton
//      */
//     public ObjectGraph mObjectGraph;
// 
//     private static SnippetApp sSnippetApp;
// 
//     @Inject
//     protected String endpoint;
// 
//     @Inject
//     protected Converter converter;
// 
//     @Inject
//     protected RestAdapter.LogLevel logLevel;
// 
//     @Inject
//     protected RequestInterceptor requestInterceptor;
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
//         sSnippetApp = this;
//         mObjectGraph = ObjectGraph.create(new AppModule());
//         mObjectGraph.inject(this);
//         if (BuildConfig.DEBUG) {
//             Timber.plant(new Timber.DebugTree());
//         }
//     }
// 
//     public static SnippetApp getApp() {
//         return sSnippetApp;
//     }
// 
//     public RestAdapter getRestAdapter() {
//         return new RestAdapter.Builder()
//                 .setEndpoint(endpoint)
//                 .setLogLevel(logLevel)
//                 .setConverter(converter)
//                 .setRequestInterceptor(requestInterceptor)
//                 .build();
//     }
// }


import com.microsoft.o365_android_onenote_rest.application.SnippetApp;
import static com.microsoft.o365_android_onenote_rest.R.string.on_base;
import static com.microsoft.o365_android_onenote_rest.R.string.on_create;
import static com.microsoft.o365_android_onenote_rest.R.string.on_update;
import static com.microsoft.o365_android_onenote_rest.R.string.wl_offline_access;
import static com.microsoft.o365_android_onenote_rest.R.string.wl_signin;
        }

        @Override
        public String toString() {
            return getScope() + DELIM + mDescription;
        }
    }

    public enum office {
        onenote_create(on_create),
        onenote_update(on_update),
        onenote(on_base);

        public final String mDescription;

        office(int desc) {
            mDescription = getString(desc);
        }

        public String getScope() {
            return "office." + name();
        }

        @Override
        public String toString() {
            return getScope() + DELIM + mDescription;
        }
    }

    private static String getString(int res) {
// Path: app/src/main/java/com/microsoft/o365_android_onenote_rest/application/SnippetApp.java
// public class SnippetApp extends Application {
//     /**
//      * The {@link dagger.ObjectGraph} used by Dagger to fulfill <code>@inject</code> annotations
//      *
//      * @see javax.inject.Inject
//      * @see dagger.Provides
//      * @see javax.inject.Singleton
//      */
//     public ObjectGraph mObjectGraph;
// 
//     private static SnippetApp sSnippetApp;
// 
//     @Inject
//     protected String endpoint;
// 
//     @Inject
//     protected Converter converter;
// 
//     @Inject
//     protected RestAdapter.LogLevel logLevel;
// 
//     @Inject
//     protected RequestInterceptor requestInterceptor;
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
//         sSnippetApp = this;
//         mObjectGraph = ObjectGraph.create(new AppModule());
//         mObjectGraph.inject(this);
//         if (BuildConfig.DEBUG) {
//             Timber.plant(new Timber.DebugTree());
//         }
//     }
// 
//     public static SnippetApp getApp() {
//         return sSnippetApp;
//     }
// 
//     public RestAdapter getRestAdapter() {
//         return new RestAdapter.Builder()
//                 .setEndpoint(endpoint)
//                 .setLogLevel(logLevel)
//                 .setConverter(converter)
//                 .setRequestInterceptor(requestInterceptor)
//                 .build();
//     }
// }


// Path: app/src/main/java/com/microsoft/o365_android_onenote_rest/model/Scope.java
import com.microsoft.o365_android_onenote_rest.application.SnippetApp;
import static com.microsoft.o365_android_onenote_rest.R.string.on_base;
import static com.microsoft.o365_android_onenote_rest.R.string.on_create;
import static com.microsoft.o365_android_onenote_rest.R.string.on_update;
import static com.microsoft.o365_android_onenote_rest.R.string.wl_offline_access;
import static com.microsoft.o365_android_onenote_rest.R.string.wl_signin;

        }

        @Override
        public String toString() {
            return getScope() + DELIM + mDescription;
        }
    }

    public enum office {
        onenote_create(on_create),
        onenote_update(on_update),
        onenote(on_base);

        public final String mDescription;

        office(int desc) {
            mDescription = getString(desc);
        }

        public String getScope() {
            return "office." + name();
        }

        @Override
        public String toString() {
            return getScope() + DELIM + mDescription;
        }
    }

    private static String getString(int res) {
        return SnippetApp.getApp().getString(res);