/**
 * Copyright 2016 Bryan Kelly
 *
 * 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.btkelly.gnag.api;

import com.btkelly.gnag.models.GitHubIssueComment;
import com.btkelly.gnag.models.GitHubPRDetails;
import com.btkelly.gnag.models.GitHubPRDiffWrapper;
import com.btkelly.gnag.models.GitHubStatus;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Path;

/**
 * Created by bobbake4 on 12/1/15.
 */
public interface GitHubApiClient {

    @POST("issues/{issueNumber}/comments")
    Call<GitHubIssueComment> postComment(@Body GitHubIssueComment gitHubIssueComment, @Path("issueNumber") String issueNumber);

    @POST("statuses/{sha}")
    Call<GitHubStatus> postUpdatedStatus(@Body GitHubStatus gitHubStatus, @Path("sha") String sha);

    @GET("pulls/{issueNumber}")
    Call<GitHubPRDetails> getPRDetails(@Path("issueNumber") String issueNumber);

    @GET("pulls/{issueNumber}")
    Call<GitHubPRDiffWrapper> getPRDiffWrapper(@Path("issueNumber") String issueNumber);

}

@@ -651,171 +651,9 @@
 els.
-GitHubIssueComment;%0Aimport com.btkelly.gnag.models.GitHubPRDetails;%0Aimport com.btkelly.gnag.models.GitHubPRDiffWrapper;%0Aimport com.btkelly.gnag.models.GitHubStatus
+*
 ;%0Aim
@@ -864,16 +864,89 @@
 ient %7B%0A%0A
+    // https://developer.github.com/v3/issues/comments/#create-a-comment%0A
     @POS
@@ -1376,32 +1376,32 @@
 %7BissueNumber%7D%22)%0A
-
     Call%3CGitHubP
@@ -1474,10 +1474,276 @@
 mber);%0A%0A
+    // https://developer.github.com/v3/pulls/comments/#create-a-comment%0A    @POST(%22pulls/%7BissueNumber%7D/comments%22)%0A    // TODO: validate choice of Void here%0A    Call%3CVoid%3E postComment(@Body GitHubPRComment gitHubPRComment, @Path(%22issueNumber%22) String issueNumber);%0A%0A%0A
 %7D%0A

Add PR comment POST method to API client