Commit 65538f6a authored by Vladislav Bogdashkin's avatar Vladislav Bogdashkin 🎣

add getEstate method api declaration

parent 241cf0ba
...@@ -127,6 +127,13 @@ interface IRoomParkMobileApi{ ...@@ -127,6 +127,13 @@ interface IRoomParkMobileApi{
//endregion //endregion
//region Get Estate
const val GET_ESTATE_ID="estates.getEstate"
const val ESTATE_BUILDING_NUMBER_PARAM="building "
const val ESTATE_FLAT_NUMBER_PARAM="number "
//endregion
} }
...@@ -248,6 +255,7 @@ interface IRoomParkMobileApi{ ...@@ -248,6 +255,7 @@ interface IRoomParkMobileApi{
): Observable<Response<String>> ): Observable<Response<String>>
@Deprecated("change to estates.getEstate method as more common")
@GET("$API_URL$GET_MULTITOUR_ID$DELIMITER") @GET("$API_URL$GET_MULTITOUR_ID$DELIMITER")
fun getMultiTourId( fun getMultiTourId(
@Query(CLIENT_TYPE_PARAM) clientType: String = DEFAULT_CLIENT_TYPE, @Query(CLIENT_TYPE_PARAM) clientType: String = DEFAULT_CLIENT_TYPE,
...@@ -255,7 +263,16 @@ interface IRoomParkMobileApi{ ...@@ -255,7 +263,16 @@ interface IRoomParkMobileApi{
@Query(API_VERSION_PARAM) apiVersion: String = DEFAULT_API_VERSION, @Query(API_VERSION_PARAM) apiVersion: String = DEFAULT_API_VERSION,
@Query(MULTITOUR_BUILDING_NUMBER_PARAM) building:Int, @Query(MULTITOUR_BUILDING_NUMBER_PARAM) building:Int,
@Query(MULTITOUR_FLAT_NUMBER_PARAM) flatNumber:Int @Query(MULTITOUR_FLAT_NUMBER_PARAM) flatNumber:Int
): Observable<Response<List<PlanRaw>>> ): Observable<Response<Int>>
@GET("$API_URL$GET_ESTATE_ID$DELIMITER")
fun getEstate(
@Query(CLIENT_TYPE_PARAM) clientType: String = DEFAULT_CLIENT_TYPE,
@Query(CLIENT_VERSION_PARAM) clientVersion: String = DEFAULT_CLIENT_VERSION,
@Query(API_VERSION_PARAM) apiVersion: String = DEFAULT_API_VERSION,
@Query(ESTATE_BUILDING_NUMBER_PARAM) building:Int,
@Query(ESTATE_FLAT_NUMBER_PARAM) flatNumber:Int
): Observable<Response<EstateRaw>>
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment