﻿@using System.Linq;
@using AutoRest.Core.ClientModel
@using AutoRest.Core.Utilities
@using AutoRest.Java.Azure.TemplateModels
@inherits AutoRest.Core.Template<AutoRest.Java.Azure.TemplateModels.AzureServiceClientTemplateModel>
/**
 * The interface defining all the services for @Model.Name to be
 * used by Retrofit to perform actually REST calls.
 */
interface @Model.ServiceClientServiceType {
@foreach (AzureMethodTemplateModel method in Model.MethodTemplateModels)
{
if (method.RequestContentType == "multipart/form-data" || method.RequestContentType == "application/x-www-form-urlencoded")
{
@:    @@Multipart
}
else
{
@:    @@Headers("Content-Type: @method.RequestContentType")
}
if (method.HttpMethod == HttpMethod.Delete)
{
@:    @@HTTP(path = "@(method.Url.TrimStart('/'))", method = "DELETE", hasBody = true)
}
else if (method.IsPagingNextOperation)
{
@:    @@GET
}
else
{
@:    @@@(method.HttpMethod.ToString().ToUpper())("@(method.Url.TrimStart('/'))")
}
if (method.ReturnType.Body.IsPrimaryType(KnownPrimaryType.Stream))
{
@:    @@Streaming
}
@:    Call<@method.CallType> @(method.Name)(@method.MethodParameterApiDeclaration);
@EmptyLine
}
}
﻿@using System.Linq;
@using AutoRest.Core.ClientModel
@using AutoRest.Core.Utilities
@using AutoRest.Java.Azure.TemplateModels
@inherits AutoRest.Core.Template<AutoRest.Java.Azure.TemplateModels.AzureServiceClientTemplateModel>
/**
 * The interface defining all the services for @Model.Name to be
 * used by Retrofit to perform actually REST calls.
 */
interface @Model.ServiceClientServiceType {
@foreach (AzureMethodTemplateModel method in Model.MethodTemplateModels)
{
if (method.RequestContentType == "multipart/form-data" || method.RequestContentType == "application/x-www-form-urlencoded")
{
@:    @@Multipart
}
else
{
@:    @@Headers("Content-Type: @method.RequestContentType")
}
if (method.HttpMethod == HttpMethod.Delete)
{
@:    @@HTTP(path = "@(method.Url.TrimStart('/'))", method = "DELETE", hasBody = true)
}
else
{
@:    @@@(method.HttpMethod.ToString().ToUpper())("@(method.Url.TrimStart('/'))")
}
if (method.ReturnType.Body.IsPrimaryType(KnownPrimaryType.Stream))
{
@:    @@Streaming
}
@:    Call<@method.CallType> @(method.Name)(@method.MethodParameterApiDeclaration);
@EmptyLine
}
}
Fix paging next in service client level methods
Fix paging next in service client level methods
