/****************************************************************************
 * Copyright 2017, Optimizely, Inc. and contributors                   *
 *                                                                          *
 * Licensed under the Apache License, Version 2.0 (the "License");          *
 * you may not use this file except in compliance with the License.         *
 * You may obtain a copy of the License at                                  *
 *                                                                          *
 *    http://www.apache.org/licenses/LICENSE-2.0                            *
 *                                                                          *
 * Unless required by applicable law or agreed to in writing, software      *
 * distributed under the License is distributed on an "AS IS" BASIS,        *
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
 * See the License for the specific language governing permissions and      *
 * limitations under the License.                                           *
 ***************************************************************************/

package com.optimizely.ab.android.sdk;

import android.app.UiModeManager;
import android.content.Context;
import android.content.res.Configuration;
import android.support.annotation.NonNull;
import android.support.annotation.VisibleForTesting;

import com.optimizely.ab.event.internal.payload.Event;

public class OptimizelyClientEngine {

    @VisibleForTesting
    public static Event.ClientEngine getClientEngineFromContext(@NonNull Context context) {
        UiModeManager uiModeManager = (UiModeManager) context.getSystemService(Context.UI_MODE_SERVICE);

        if (uiModeManager != null && uiModeManager.getCurrentModeType() == Configuration.UI_MODE_TYPE_TELEVISION) {
            return Event.ClientEngine.ANDROID_TV_SDK;
        }

        return Event.ClientEngine.ANDROID_SDK;
    }

}

@@ -1464,46 +1464,322 @@
 t;%0A%0A
-public class OptimizelyClientEngine %7B%0A
+/**%0A * This class manages client engine value of the Event depending on current mode of UI.%0A */%0Apublic class OptimizelyClientEngine %7B%0A%0A    /**%0A     * Get client engine value for current UI mode type%0A     *%0A     * @param context any valid Android %7B@link Context%7D%0A     * @return String value of client engine%0A     */
 %0A   

Add missing JavaDoc to new class (#94)