Example #1
0
 /// <summary>
 /// Get alarm user note
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='id'>
 /// The id of the alarm user note
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async System.Threading.Tasks.Task <object> GetAsyncByidAsync(this IAlarmUserNotes operations, int id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     using (var _result = await operations.GetAsyncByidWithHttpMessagesAsync(id, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Example #2
0
 /// <summary>
 /// Creates a user note
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='userNote'>
 /// </param>
 public static object PostAsyncByuserNote(this IAlarmUserNotes operations, WriteAlarmUserNoteDto userNote)
 {
     return(System.Threading.Tasks.Task.Factory.StartNew(s => ((IAlarmUserNotes)s).PostAsyncByuserNoteAsync(userNote), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Example #3
0
 /// <summary>
 /// Get alarm user notes
 /// </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;AlarmUserNoteId&lt;/strong&gt;
 /// (default).&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;AlarmUserNoteId&lt;/strong&gt;
 /// (default).&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='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 IAlarmUserNotes operations, string orderby = "AlarmUserNoteId", string orderbydesc = 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, top, skip, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Example #4
0
 /// <summary>
 /// Get alarm user notes
 /// </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;AlarmUserNoteId&lt;/strong&gt;
 /// (default).&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;AlarmUserNoteId&lt;/strong&gt;
 /// (default).&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='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>
 public static object GetCollectionAsyncByqueryOptions(this IAlarmUserNotes operations, string orderby = "AlarmUserNoteId", string orderbydesc = default(string), int?top = 10000, int?skip = default(int?))
 {
     return(System.Threading.Tasks.Task.Factory.StartNew(s => ((IAlarmUserNotes)s).GetCollectionAsyncByqueryOptionsAsync(orderby, orderbydesc, top, skip), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Example #5
0
 /// <summary>
 /// Delete alarm user note by id
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='id'>
 /// Id of entity to delete
 /// </param>
 public static object DeleteAsyncByid(this IAlarmUserNotes operations, int id)
 {
     return(System.Threading.Tasks.Task.Factory.StartNew(s => ((IAlarmUserNotes)s).DeleteAsyncByidAsync(id), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Example #6
0
 /// <summary>
 /// Creates a user note
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='userNote'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async System.Threading.Tasks.Task <object> PostAsyncByuserNoteAsync(this IAlarmUserNotes operations, WriteAlarmUserNoteDto userNote, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     using (var _result = await operations.PostAsyncByuserNoteWithHttpMessagesAsync(userNote, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }