// Path: app/src/main/java/info/izumin/android/sunazuri/infrastructure/entity/TeamEntity.java
// @Table
// @JsonSerializable(fieldNamingPolicy = FieldNamingPolicy.LOWER_CASE_WITH_UNDERSCORES)
// public class TeamEntity {
//     public static final String TAG = TeamEntity.class.getSimpleName();
// 
//     @PrimaryKey(auto = false)
//     @Column(indexed = true)
//     public String name;
// 
//     @Column
//     public String privacy;
// 
//     @Column
//     public String description;
// 
//     @Column
//     public String icon;
// 
//     @Column(indexed = true)
//     public AuthorizedUserEntity user;
// }
// 
// Path: app/src/main/java/info/izumin/android/sunazuri/infrastructure/entity/TeamStatsEntity.java
// @Table
// @JsonSerializable(fieldNamingPolicy = FieldNamingPolicy.LOWER_CASE_WITH_UNDERSCORES)
// public class TeamStatsEntity {
//     public static final String TAG = TeamStatsEntity.class.getSimpleName();
// 
//     @Column
//     public int members;
// 
//     @Column
//     public int posts;
// 
//     @Column
//     public int comments;
// 
//     @Column
//     public int stars;
// 
//     @Column
//     public int dailyActiveUsers;
// 
//     @Column
//     public int weeklyActiveUsers;
// 
//     @Column
//     public int monthlyActiveUsers;
// 
//     @PrimaryKey(auto = false)
//     @Column
//     public TeamEntity team;
// }


import info.izumin.android.sunazuri.infrastructure.entity.TeamEntity;
import info.izumin.android.sunazuri.infrastructure.entity.TeamStatsEntity;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;
import rx.Single;
import java.util.List;
package info.izumin.android.sunazuri.infrastructure.api;



/**
 * Created by izumin on 5/13/2016 AD.
 */
public interface TeamsApi {
    @GET("/v1/teams")
    Single<List<TeamEntity>> fetch(
            @Query("access_token") String accessToken
    );

    @GET("/v1/teams/{team_name}")
    Single<TeamEntity> fetch(
            @Path("team_name") String teamName,
            @Query("access_token") String accessToken
    );

    @GET("/v1/teams/{team_name}/stats")
// Path: app/src/main/java/info/izumin/android/sunazuri/infrastructure/entity/TeamEntity.java
// @Table
// @JsonSerializable(fieldNamingPolicy = FieldNamingPolicy.LOWER_CASE_WITH_UNDERSCORES)
// public class TeamEntity {
//     public static final String TAG = TeamEntity.class.getSimpleName();
// 
//     @PrimaryKey(auto = false)
//     @Column(indexed = true)
//     public String name;
// 
//     @Column
//     public String privacy;
// 
//     @Column
//     public String description;
// 
//     @Column
//     public String icon;
// 
//     @Column(indexed = true)
//     public AuthorizedUserEntity user;
// }
// 
// Path: app/src/main/java/info/izumin/android/sunazuri/infrastructure/entity/TeamStatsEntity.java
// @Table
// @JsonSerializable(fieldNamingPolicy = FieldNamingPolicy.LOWER_CASE_WITH_UNDERSCORES)
// public class TeamStatsEntity {
//     public static final String TAG = TeamStatsEntity.class.getSimpleName();
// 
//     @Column
//     public int members;
// 
//     @Column
//     public int posts;
// 
//     @Column
//     public int comments;
// 
//     @Column
//     public int stars;
// 
//     @Column
//     public int dailyActiveUsers;
// 
//     @Column
//     public int weeklyActiveUsers;
// 
//     @Column
//     public int monthlyActiveUsers;
// 
//     @PrimaryKey(auto = false)
//     @Column
//     public TeamEntity team;
// }


// Path: app/src/main/java/info/izumin/android/sunazuri/infrastructure/api/TeamsApi.java
import info.izumin.android.sunazuri.infrastructure.entity.TeamEntity;
import info.izumin.android.sunazuri.infrastructure.entity.TeamStatsEntity;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;
import rx.Single;
import java.util.List;

package info.izumin.android.sunazuri.infrastructure.api;



/**
 * Created by izumin on 5/13/2016 AD.
 */
public interface TeamsApi {
    @GET("/v1/teams")
    Single<List<TeamEntity>> fetch(
            @Query("access_token") String accessToken
    );

    @GET("/v1/teams/{team_name}")
    Single<TeamEntity> fetch(
            @Path("team_name") String teamName,
            @Query("access_token") String accessToken
    );

    @GET("/v1/teams/{team_name}/stats")
    Single<TeamStatsEntity> stats(