IQnBarApi.java 2.28 KB
/*
 *  Copyright (c)  2016.  wugian
 *  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.xgimi.gimicinema.api;


import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by wugian on 2016/11/8
 */
public interface IQnBarApi {
    public static final String QN_API_BASE_URL = "http://fbs.qnbar.com/apis/";
    //http://fbs.qnbar.com/apis/rest/Server/getStatus?imei=CH17G1875TBG
    public static final String QN_API_GET_STATUS = "rest/Server/getStatus";
    //http://fbs.qnbar.com/apis/rest/Server/getMessage?imei=LETEST
    public static final String QN_API_GET_MESSAGE = "rest/Server/getMessage";

    //http://api.qnbar.com/Agent/GetPoster?imei=CH23G16E9TBN
    public static final String QN_API_GET_POSTER = "Agent/GetPoster";

    //http://api.qnbar.com/Api/Agent/GetHotelMedia?mediaType=3&imei=AATEST
    public static final String QN_API_GET_HOTEL_MEDIA = "Agent/GetHotelMedia";
    //http://api.qnbar.com/Api/Agent/GetInfo?imei=AXM3G15A8TW2
    public static final String QN_API_GET_INFO = "Agent/GetInfo";
    //http://api.qnbar.com/Api/Agent/CheckAppVersion?machineType=918&imei=LETEST
    public static final String QN_API_APP_UPDATE = "Agent/CheckAppVersion";

    @GET(QN_API_GET_STATUS)
    Call<String> getStatus(@Query("imei") String imei);

    @GET(QN_API_GET_MESSAGE)
    Call<String> getMessage(@Query("imei") String imei);

    @GET(QN_API_GET_POSTER)
    Call<String> getPoster(@Query("imei") String imei);

    @GET(QN_API_GET_HOTEL_MEDIA)
    Call<String> getHotelMedia(@Query("mediaType") String mediaType, @Query("imei") String imei);

    @GET(QN_API_GET_INFO)
    Call<String> getInfo(@Query("imei") String imei);

    @GET(QN_API_APP_UPDATE)
    Call<String> getAppUpdate(@Query("mediaType") String mediaType, @Query("imei") String imei);
}