/*
 * =| ADAPTIVE RUNTIME PLATFORM |=======================================================================================
 *
 * (C) Copyright 2013-2014 Carlos Lozano Diez t/a Adaptive.me <http://adaptive.me>.
 *
 * 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.
 *
 * Original author:
 *
 *     * Carlos Lozano Diez
 *                 <http://github.com/carloslozano>
 *                 <http://twitter.com/adaptivecoder>
 *                 <mailto:carlos@adaptive.me>
 *
 * Contributors:
 *
 *     *
 *
 * =====================================================================================================================
 */

package me.adaptive.arp.api;

/**
 * Created by FRMI on 25/08/2014.
 */
public interface IContactPhotoResultCallback extends IBaseCallback {
    /**
     * This method is called on Result
     *
     * @param contactPhoto returned by the platform
     * @since ARP1.0
     */
    void onResult(byte[] contactPhoto);

    /**
     * This method is called on Warning
     *
     * @param contactPhoto returned by the platform
     * @param warning      returned by the platform
     * @since ARP1.0
     */
    void onWarning(byte[] contactPhoto, Warning warning);

    /**
     * This method is called on Error
     *
     * @param error returned by the platform
     * @since ARP1.0
     */
    void onError(Error error);

    /**
     * Warnings that can be used
     *
     * @since ARP1.0
     */
    public enum Warning {
        LimitExceeded,No_Matches
    }

    /**
     * Errors that can be used
     *
     * @since ARP1.0
     */
    public enum Error {
        NoPermission,Wrong_Params,No_Photo
    }
}

@@ -1946,24 +1946,16 @@
 arning %7B
-%0A       
  LimitEx
@@ -1961,16 +1961,17 @@
 xceeded,
+ 
 No_Match
@@ -1972,20 +1972,25 @@
 _Matches
-%0A   
+, Unknown
  %7D%0A%0A    
@@ -2087,16 +2087,8 @@
 or %7B
-%0A       
  NoP
@@ -2097,16 +2097,17 @@
 mission,
+ 
 Wrong_Pa
@@ -2115,16 +2115,17 @@
 ams,
+ 
 No_Photo
 %0A   
@@ -2120,17 +2120,22 @@
 No_Photo
-%0A   
+, Unknown
  %7D%0A%7D%0A

Update IContactPhotoResultCallback.java