/// <summary> /// Get complex types with integer properties /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static IntWrapperInner GetInt(this IPrimitiveOperations operations) { return(operations.GetIntAsync().GetAwaiter().GetResult()); }
/// <summary> /// Put complex types with double properties /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='complexBody'> /// Please put 3e-100 and /// -0.000000000000000000000000000000000000000000000000000000005 /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task PutDoubleAsync(this IPrimitiveOperations operations, DoubleWrapperInner complexBody, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.PutDoubleWithHttpMessagesAsync(complexBody, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Get complex types with bool properties /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static BooleanWrapperInner GetBool(this IPrimitiveOperations operations) { return(operations.GetBoolAsync().GetAwaiter().GetResult()); }
/// <summary> /// Get complex types with double properties /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static DoubleWrapperInner GetDouble(this IPrimitiveOperations operations) { return(operations.GetDoubleAsync().GetAwaiter().GetResult()); }
/// <summary> /// Put complex types with double properties /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='complexBody'> /// Please put 3e-100 and /// -0.000000000000000000000000000000000000000000000000000000005 /// </param> public static void PutDouble(this IPrimitiveOperations operations, DoubleWrapperInner complexBody) { operations.PutDoubleAsync(complexBody).GetAwaiter().GetResult(); }
/// <summary> /// Get complex types with long properties /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static LongWrapperInner GetLong(this IPrimitiveOperations operations) { return(operations.GetLongAsync().GetAwaiter().GetResult()); }
/// <summary> /// Put complex types with float properties /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='complexBody'> /// Please put 1.05 and -0.003 /// </param> public static void PutFloat(this IPrimitiveOperations operations, FloatWrapperInner complexBody) { operations.PutFloatAsync(complexBody).GetAwaiter().GetResult(); }
/// <summary> /// Put complex types with byte properties /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='field'> /// </param> public static void PutByte(this IPrimitiveOperations operations, byte[] field = default(byte[])) { operations.PutByteAsync(field).GetAwaiter().GetResult(); }
/// <summary> /// Put complex types with byte properties /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='field'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task PutByteAsync(this IPrimitiveOperations operations, byte[] field = default(byte[]), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.PutByteWithHttpMessagesAsync(field, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Put complex types with duration properties /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='field'> /// </param> public static void PutDuration(this IPrimitiveOperations operations, System.TimeSpan?field = default(System.TimeSpan?)) { operations.PutDurationAsync(field).GetAwaiter().GetResult(); }
/// <summary> /// Put complex types with duration properties /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='field'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task PutDurationAsync(this IPrimitiveOperations operations, System.TimeSpan?field = default(System.TimeSpan?), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.PutDurationWithHttpMessagesAsync(field, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Put complex types with datetimeRfc1123 properties /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='complexBody'> /// Please put 'Mon, 01 Jan 0001 12:00:00 GMT' and 'Mon, 18 May 2015 11:38:00 /// GMT' /// </param> public static void PutDateTimeRfc1123(this IPrimitiveOperations operations, Datetimerfc1123WrapperInner complexBody) { operations.PutDateTimeRfc1123Async(complexBody).GetAwaiter().GetResult(); }
/// <summary> /// Get complex types with datetimeRfc1123 properties /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <Datetimerfc1123WrapperInner> GetDateTimeRfc1123Async(this IPrimitiveOperations operations, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetDateTimeRfc1123WithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Get complex types with datetimeRfc1123 properties /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static Datetimerfc1123WrapperInner GetDateTimeRfc1123(this IPrimitiveOperations operations) { return(operations.GetDateTimeRfc1123Async().GetAwaiter().GetResult()); }
/// <summary> /// Put complex types with string properties /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='complexBody'> /// Please put 'goodrequest', '', and null /// </param> public static void PutString(this IPrimitiveOperations operations, StringWrapperInner complexBody) { operations.PutStringAsync(complexBody).GetAwaiter().GetResult(); }
/// <summary> /// Put complex types with bool properties /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='complexBody'> /// Please put true and false /// </param> public static void PutBool(this IPrimitiveOperations operations, BooleanWrapperInner complexBody) { operations.PutBoolAsync(complexBody).GetAwaiter().GetResult(); }