예제 #1
0
 /// <summary>
 /// Get all Units
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='orderby'>
 /// &lt;p&gt;&lt;a href='#queryoptions'&gt;Sorts&lt;/a&gt; the result in
 /// ascending order by the supplied property.&lt;/p&gt;&lt;p&gt;Valid values
 /// are: &lt;strong&gt;UnitId&lt;/strong&gt; (default),
 /// &lt;strong&gt;Name&lt;/strong&gt;.&lt;/p&gt;&lt;p&gt;Note:
 /// &lt;strong&gt;orderby&lt;/strong&gt; and
 /// &lt;strong&gt;orderbydesc&lt;/strong&gt; are mutually exclusive.&lt;/p&gt;
 /// </param>
 /// <param name='orderbydesc'>
 /// &lt;p&gt;&lt;a href='#queryoptions'&gt;Sorts&lt;/a&gt; the result in
 /// descending order by the supplied property.&lt;/p&gt;&lt;p&gt;Valid values
 /// are: &lt;strong&gt;UnitId&lt;/strong&gt; (default),
 /// &lt;strong&gt;Name&lt;/strong&gt;.&lt;/p&gt;&lt;p&gt;Note:
 /// &lt;strong&gt;orderby&lt;/strong&gt; and
 /// &lt;strong&gt;orderbydesc&lt;/strong&gt; are mutually exclusive.&lt;/p&gt;
 /// </param>
 /// <param name='accountAccountId'>
 /// &lt;p&gt;&lt;a href="#queryoptions"&gt;Filters&lt;/a&gt; the result by
 /// Account.AccountId using the supplied operation and
 /// value.&lt;/p&gt;&lt;p&gt;Valid operations are:
 /// &lt;strong&gt;eq(int)&lt;/strong&gt;&lt;/p&gt;
 /// </param>
 /// <param name='unitTypeUnitTypeId'>
 /// &lt;p&gt;&lt;a href="#queryoptions"&gt;Filters&lt;/a&gt; the result by
 /// UnitType.UnitTypeId using the supplied operation and
 /// value.&lt;/p&gt;&lt;p&gt;Valid operations are:
 /// &lt;strong&gt;eq(int)&lt;/strong&gt;&lt;/p&gt;
 /// </param>
 /// <param name='top'>
 /// &lt;a href="#queryoptions"&gt;Query paging&lt;/a&gt; Returns the maximum
 /// number of entities. Default and max value is 10000
 /// </param>
 /// <param name='skip'>
 /// &lt;a href="#queryoptions"&gt;Query paging&lt;/a&gt; Skips this number of
 /// entities
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async System.Threading.Tasks.Task <object> GetCollectionAsyncByqueryOptionsAsync(this IUnits operations, string orderby = "UnitId", string orderbydesc = default(string), string accountAccountId = default(string), string unitTypeUnitTypeId = default(string), int?top = 10000, int?skip = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     using (var _result = await operations.GetCollectionAsyncByqueryOptionsWithHttpMessagesAsync(orderby, orderbydesc, accountAccountId, unitTypeUnitTypeId, top, skip, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }