Ejemplo n.º 1
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='pollId'>
 /// </param>
 /// <param name='lang'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IList <LMSDomainCoreModelsMaterialsPollChoice> > GetPollChoicesByPollIdAsync(this IPollApi operations, string pollId, string lang, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetPollChoicesByPollIdWithHttpMessagesAsync(pollId, lang, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Ejemplo n.º 2
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='pollChoiceId'>
 /// </param>
 /// <param name='lang'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <LMSApplicationCoreViewModelPollUserPollViewModel> AddPollVoteAsync(this IPollApi operations, LMSApplicationCoreCommandsPollChoiceAddCommand pollChoiceId, string lang, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.AddPollVoteWithHttpMessagesAsync(pollChoiceId, lang, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Ejemplo n.º 3
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='pollId'>
 /// </param>
 /// <param name='lang'>
 /// </param>
 public static IList <LMSDomainCoreModelsMaterialsPollChoice> GetPollChoicesByPollId(this IPollApi operations, string pollId, string lang)
 {
     return(operations.GetPollChoicesByPollIdAsync(pollId, lang).GetAwaiter().GetResult());
 }
Ejemplo n.º 4
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='pollChoiceId'>
 /// </param>
 /// <param name='lang'>
 /// </param>
 public static LMSApplicationCoreViewModelPollUserPollViewModel AddPollVote(this IPollApi operations, LMSApplicationCoreCommandsPollChoiceAddCommand pollChoiceId, string lang)
 {
     return(operations.AddPollVoteAsync(pollChoiceId, lang).GetAwaiter().GetResult());
 }