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
 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;
     }
 }