@file:Suppress("KDocUnresolvedReference")

package com.sedsoftware.yaptalker.data.remote.yap

import com.sedsoftware.yaptalker.data.model.Forums
import com.sedsoftware.yaptalker.data.model.News
import io.reactivex.Single
import retrofit2.http.GET
import retrofit2.http.Path

interface YapLoader {

  /**
   * Load news from main page
   *
   * @param startPage Starting page number, also defines how much pages will be loaded.
   */
  @GET("/st/{startPage}/")
  fun loadNews(@Path("startPage") startPage: Int): Single<News>

  /**
   * Load main forums list
   */
  @GET("/forum")
  fun loadForumsList(): Single<Forums>
}

@file:Suppress("KDocUnresolvedReference")

package com.sedsoftware.yaptalker.data.remote.yap

import com.sedsoftware.yaptalker.data.model.ForumPage
import com.sedsoftware.yaptalker.data.model.Forums
import com.sedsoftware.yaptalker.data.model.News
import io.reactivex.Single
import retrofit2.http.GET
import retrofit2.http.Path

interface YapLoader {

  /**
   * Load news from main page
   *
   * @param startPage Starting page number, also defines how much pages will be loaded.
   */
  @GET("/st/{startPage}/")
  fun loadNews(@Path("startPage") startPage: Int): Single<News>

  /**
   * Load main forums list
   */
  @GET("/forum")
  fun loadForumsList(): Single<Forums>

  /**
   * Load chosen forum page.
   *
   * @param forumId Chosen forum id
   * @param startFrom Starting page (first page equals 0, should be multiply of 30)
   * @param sortingMode Possible values: last_post and rank
   */
  @GET("/forum{forumId}/st/{startFrom}/100/Z-A/{sortingMode}")
  fun loadForumPage(
      @Path("forumId") forumId: Int,
      @Path("startFrom") startTopicNumber: Int,
      @Path("sortingMode") sortingMode: String): Single<ForumPage>
}

Add request for forum load
Add request for forum load

djkovrik/YapTalker,djkovrik/YapTalker