Esempio n. 1
0
        public string GetHandlerInterfaceMethodName()
        {
            var splited = SerializedName.Split('_', StringSplitOptions.RemoveEmptyEntries);

            if (splited.Length > 1)
            {
                splited = splited.Skip(1).ToArray();
            }
            return(String.Join("", splited).ToCamelCase());
        }
Esempio n. 2
0
 public PropertyPya()
 {
     DefaultValue.OnGet += value =>
     {
         // single quotes for these...
         if (SerializedName.EqualsIgnoreCase(AzureExtensions.ApiVersion) || SerializedName.EqualsIgnoreCase(AzureExtensions.AcceptLanguage))
         {
             return(value.Replace("\"", "'"));
         }
         return(value);
     };
 }
Esempio n. 3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (SerializedName.Length != 0)
            {
                hash ^= SerializedName.GetHashCode();
            }
            hash ^= difficulties_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Esempio n. 4
0
 public string GetOperationSpecVariableName()
 {
     return(SerializedName.ToCamelCase() + "OperationSpec");
 }