コード例 #1
0
 public static string ImportFrom(this ParameterLocation parameterLocation)
 {
     if (parameterLocation != ParameterLocation.None &&
         parameterLocation != ParameterLocation.FormData)
     {
         return("retrofit2.http." + parameterLocation.ToString());
     }
     else
     {
         return(null);
     }
 }
コード例 #2
0
 private string LocationImport(ParameterLocation parameterLocation)
 {
     if (parameterLocation == ParameterLocation.FormData)
     {
         return("retrofit2.http.Part");
     }
     else if (parameterLocation != ParameterLocation.None)
     {
         return("retrofit2.http." + parameterLocation.ToString());
     }
     else
     {
         return(null);
     }
 }
コード例 #3
0
ファイル: ParameterModel.cs プロジェクト: jhancock93/autorest
 private string LocationImport(ParameterLocation parameterLocation)
 {
     if (parameterLocation == ParameterLocation.FormData)
     {
         return "retrofit2.http.Part";
     }
     else if (parameterLocation != ParameterLocation.None)
     {
         return "retrofit2.http." + parameterLocation.ToString();
     }
     else
     {
         return null;
     }
 }