// Path: opfpush/src/main/java/org/onepf/opfpush/listener/CheckManifestHandler.java
// public interface CheckManifestHandler {
// 
//     /**
//      * Called when some check manifest error occurred.
//      *
//      * @param reportMessage The information about error.
//      */
//     void onCheckManifestError(@NonNull final String reportMessage);
// }
// 
// Path: opfpush/src/main/java/org/onepf/opfpush/model/AvailabilityResult.java
// public final class AvailabilityResult {
// 
//     private boolean isAvailable;
// 
//     @Nullable
//     private Integer errorCode;
// 
//     public AvailabilityResult(final boolean isAvailable) {
//         this(isAvailable, null);
//     }
// 
//     public AvailabilityResult(@NonNull final Integer errorCode) {
//         this(false, errorCode);
//     }
// 
//     public AvailabilityResult(final boolean isAvailable, @Nullable final Integer errorCode) {
//         this.isAvailable = isAvailable;
//         this.errorCode = errorCode;
//     }
// 
//     /**
//      * Returns {@code true} if a provider is available, false otherwise.
//      *
//      * @return {@code true} if a provider is available, false otherwise.
//      */
//     public boolean isAvailable() {
//         return isAvailable;
//     }
// 
//     /**
//      * Returns a specific provider error code.
//      *
//      * @return The availability error code, or {@code null} if a provider hasn't returned a error code.
//      */
//     @Nullable
//     public Integer getErrorCode() {
//         return errorCode;
//     }
// }
// 
// Path: opfpush/src/main/java/org/onepf/opfpush/notification/NotificationMaker.java
// public interface NotificationMaker {
// 
//     /**
//      * Returns true if a notification must be shown for the bundle. False otherwise.
//      *
//      * @param bundle The bundle received from a push provider.
//      * @return Returns true if a notification should be shown for the bundle. False otherwise.
//      */
//     boolean needShowNotification(@NonNull final Bundle bundle);
// 
//     /**
//      * Shows notification using bundle data.
//      *
//      * @param context The Context instance.
//      * @param bundle  Received data.
//      */
//     void showNotification(@NonNull final Context context, @NonNull final Bundle bundle);
// }
// 
// Path: opfpush-providers/nokia/src/main/java/org/onepf/opfpush/nokia/NokiaPushConstants.java
// public static final String PROVIDER_NAME = "Nokia Push";


import android.content.Context;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import org.onepf.opfpush.listener.CheckManifestHandler;
import org.onepf.opfpush.model.AvailabilityResult;
import org.onepf.opfpush.notification.NotificationMaker;
import org.onepf.opfutils.OPFLog;
import static org.onepf.opfpush.nokia.NokiaPushConstants.PROVIDER_NAME;
/*
 * Copyright 2012-2015 One Platform Foundation
 *
 * 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 org.onepf.opfpush.nokia;




/**
 * Nokia Notification push provider stub for not nokia devices.
 *
 * @author Roman Savin
 * @since 23.03.2015
 */
class NokiaNotificationsProviderStub implements NokiaPushProvider {

    @Override
    public long getRegisterOnServerLifespan() {
        OPFLog.logMethod();
        return 0;
    }

    @Override
    public void setRegisteredOnServer(@NonNull final Context context, final boolean flag) {
        OPFLog.logMethod(context, flag);
    }

    @Override
    public void setRegisterOnServerLifespan(@NonNull final Context context, final long lifespan) {
        OPFLog.logMethod(context, lifespan);
    }

    @Override
    public boolean isRegisterOnServer() {
        OPFLog.logMethod();
        return false;
    }

    @Override
    public void register() {
        OPFLog.logMethod();
    }

    @Override
    public void unregister() {
        OPFLog.logMethod();
    }

    @NonNull
    @Override
// Path: opfpush/src/main/java/org/onepf/opfpush/listener/CheckManifestHandler.java
// public interface CheckManifestHandler {
// 
//     /**
//      * Called when some check manifest error occurred.
//      *
//      * @param reportMessage The information about error.
//      */
//     void onCheckManifestError(@NonNull final String reportMessage);
// }
// 
// Path: opfpush/src/main/java/org/onepf/opfpush/model/AvailabilityResult.java
// public final class AvailabilityResult {
// 
//     private boolean isAvailable;
// 
//     @Nullable
//     private Integer errorCode;
// 
//     public AvailabilityResult(final boolean isAvailable) {
//         this(isAvailable, null);
//     }
// 
//     public AvailabilityResult(@NonNull final Integer errorCode) {
//         this(false, errorCode);
//     }
// 
//     public AvailabilityResult(final boolean isAvailable, @Nullable final Integer errorCode) {
//         this.isAvailable = isAvailable;
//         this.errorCode = errorCode;
//     }
// 
//     /**
//      * Returns {@code true} if a provider is available, false otherwise.
//      *
//      * @return {@code true} if a provider is available, false otherwise.
//      */
//     public boolean isAvailable() {
//         return isAvailable;
//     }
// 
//     /**
//      * Returns a specific provider error code.
//      *
//      * @return The availability error code, or {@code null} if a provider hasn't returned a error code.
//      */
//     @Nullable
//     public Integer getErrorCode() {
//         return errorCode;
//     }
// }
// 
// Path: opfpush/src/main/java/org/onepf/opfpush/notification/NotificationMaker.java
// public interface NotificationMaker {
// 
//     /**
//      * Returns true if a notification must be shown for the bundle. False otherwise.
//      *
//      * @param bundle The bundle received from a push provider.
//      * @return Returns true if a notification should be shown for the bundle. False otherwise.
//      */
//     boolean needShowNotification(@NonNull final Bundle bundle);
// 
//     /**
//      * Shows notification using bundle data.
//      *
//      * @param context The Context instance.
//      * @param bundle  Received data.
//      */
//     void showNotification(@NonNull final Context context, @NonNull final Bundle bundle);
// }
// 
// Path: opfpush-providers/nokia/src/main/java/org/onepf/opfpush/nokia/NokiaPushConstants.java
// public static final String PROVIDER_NAME = "Nokia Push";


// Path: opfpush-providers/nokia/src/main/java/org/onepf/opfpush/nokia/NokiaNotificationsProviderStub.java
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import org.onepf.opfpush.listener.CheckManifestHandler;
import org.onepf.opfpush.model.AvailabilityResult;
import org.onepf.opfpush.notification.NotificationMaker;
import org.onepf.opfutils.OPFLog;
import static org.onepf.opfpush.nokia.NokiaPushConstants.PROVIDER_NAME;

/*
 * Copyright 2012-2015 One Platform Foundation
 *
 * 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 org.onepf.opfpush.nokia;




/**
 * Nokia Notification push provider stub for not nokia devices.
 *
 * @author Roman Savin
 * @since 23.03.2015
 */
class NokiaNotificationsProviderStub implements NokiaPushProvider {

    @Override
    public long getRegisterOnServerLifespan() {
        OPFLog.logMethod();
        return 0;
    }

    @Override
    public void setRegisteredOnServer(@NonNull final Context context, final boolean flag) {
        OPFLog.logMethod(context, flag);
    }

    @Override
    public void setRegisterOnServerLifespan(@NonNull final Context context, final long lifespan) {
        OPFLog.logMethod(context, lifespan);
    }

    @Override
    public boolean isRegisterOnServer() {
        OPFLog.logMethod();
        return false;
    }

    @Override
    public void register() {
        OPFLog.logMethod();
    }

    @Override
    public void unregister() {
        OPFLog.logMethod();
    }

    @NonNull
    @Override
    public AvailabilityResult getAvailabilityResult() {