Exemple #1
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='lang'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <LMSWebCoreAPICurrentUserInfo> GetUserInfoAsync(this IAnmmarApi operations, string lang, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetUserInfoWithHttpMessagesAsync(lang, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemple #2
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='anmarFeedbackCommand'>
 /// </param>
 /// <param name='lang'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <string> CreateNewTicketAsync(this IAnmmarApi operations, LMSApplicationCoreCommandsAnmarFeedbackCommand anmarFeedbackCommand, string lang, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateNewTicketWithHttpMessagesAsync(anmarFeedbackCommand, lang, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemple #3
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='lang'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IList <LMSApplicationCoreViewModelAnmarTicket> > GetAnmarTicketsAsync(this IAnmmarApi operations, string lang, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetAnmarTicketsWithHttpMessagesAsync(lang, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemple #4
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='lang'>
 /// </param>
 public static IList <LMSApplicationCoreViewModelAnmarTicket> GetAnmarTickets(this IAnmmarApi operations, string lang)
 {
     return(operations.GetAnmarTicketsAsync(lang).GetAwaiter().GetResult());
 }
Exemple #5
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='lang'>
 /// </param>
 public static LMSWebCoreAPICurrentUserInfo GetUserInfo(this IAnmmarApi operations, string lang)
 {
     return(operations.GetUserInfoAsync(lang).GetAwaiter().GetResult());
 }
Exemple #6
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='anmarFeedbackCommand'>
 /// </param>
 /// <param name='lang'>
 /// </param>
 public static string CreateNewTicket(this IAnmmarApi operations, LMSApplicationCoreCommandsAnmarFeedbackCommand anmarFeedbackCommand, string lang)
 {
     return(operations.CreateNewTicketAsync(anmarFeedbackCommand, lang).GetAwaiter().GetResult());
 }