/// <summary>
        /// Constructor of <see cref="TeamsListResultEnumerator{TTeamsObject}"/>.
        /// </summary>
        /// <param name="listResult">First result.</param>
        /// <param name="retry">Retry will be tried by this instance if needed.</param>
        /// <param name="retryNotificationFunc">Function to be notified on retry.</param>
        internal TeamsListResultEnumerator(TeamsListResult <TTeamsObject> listResult, TeamsRetry retry, Func <TeamsListResult <TTeamsObject>, int, bool> retryNotificationFunc = null)
        {
            this.prev = listResult;

            this.retry = retry;
            this.retryNotificationFunc = retryNotificationFunc;
        }
Example #2
0
 public TeamsListResultEnumerator <TTeamsObject> GetListResultEnumerator(TeamsRetry retry, Func <TeamsListResult <TTeamsObject>, int, bool> retryNotificationFunc = null)
 {
     return(new TeamsListResultEnumerator <TTeamsObject>(this, retry, retryNotificationFunc));
 }
 /// <summary>
 /// Creates Teams API client for v1 API with retry feature.
 /// <see cref="TeamsRetryHandler"/> or <see cref="TeamsRetryOnErrorHandler"/> can be specified so that the client can retry on HTTP 429 and optinally 500, 502, 503 and 504 response.
 /// </summary>
 /// <param name="tokenProtected">Teams API token of <see cref="ProtectedString"/></param>
 /// <param name="retryHandler">Handler for retry.</param>
 /// <param name="retryNotificationFunc">Notification func where is notified before a retry. The func receives <see cref="TeamsResultInfo"/> for response info and int for trial counter. If the func returns false, the retry is cancelled.</param>
 /// <returns>Teams API client for v1 API.</returns>
 public static Thrzn41.WebexTeams.Version1.TeamsAPIClient CreateVersion1Client(ProtectedString tokenProtected, TeamsRetry retryHandler, Func <TeamsResultInfo, int, bool> retryNotificationFunc = null)
 {
     return(CreateVersion1Client(tokenProtected.DecryptToString(), retryHandler, retryNotificationFunc));
 }
 /// <summary>
 /// Creates Teams Guest Issuer client for v1 API with retry feature.
 /// <see cref="TeamsRetryHandler"/> or <see cref="TeamsRetryOnErrorHandler"/> can be specified so that the client can retry on HTTP 429 and optinally 500, 502, 503 and 504 response.
 /// </summary>
 /// <param name="secretString">Secret of string.</param>
 /// <param name="guestIssuerId">Guest Issuer Id.</param>
 /// <param name="retryHandler">Handler for retry.</param>
 /// <param name="retryNotificationFunc">Notification func where is notified before a retry. The func receives <see cref="TeamsResultInfo"/> for response info and int for trial counter. If the func returns false, the retry is cancelled.</param>
 /// <returns>Teams Guest Issuer client for v1 API.</returns>
 public static Thrzn41.WebexTeams.Version1.GuestIssuer.TeamsGuestIssuerClient CreateVersion1GuestIssuerClient(string secretString, string guestIssuerId, TeamsRetry retryHandler, Func <TeamsResultInfo, int, bool> retryNotificationFunc = null)
 {
     return(new Thrzn41.WebexTeams.Version1.GuestIssuer.TeamsGuestIssuerClient(secretString, guestIssuerId, retryHandler, retryNotificationFunc));
 }
 /// <summary>
 /// Creates Teams OAuth2 client for v1 API with retry feature.
 /// <see cref="TeamsRetryHandler"/> or <see cref="TeamsRetryOnErrorHandler"/> can be specified so that the client can retry on HTTP 429 and optinally 500, 502, 503 and 504 response.
 /// </summary>
 /// <param name="clientSecretString">Client secret of string.</param>
 /// <param name="clientId">Client id.</param>
 /// <param name="retryHandler">Handler for retry.</param>
 /// <param name="retryNotificationFunc">Notification func where is notified before a retry. The func receives <see cref="TeamsResultInfo"/> for response info and int for trial counter. If the func returns false, the retry is cancelled.</param>
 /// <returns>Teams OAuth2 client for v1 API.</returns>
 public static Thrzn41.WebexTeams.Version1.OAuth2.TeamsOAuth2Client CreateVersion1OAuth2Client(string clientSecretString, string clientId, TeamsRetry retryHandler, Func <TeamsResultInfo, int, bool> retryNotificationFunc = null)
 {
     return(new Thrzn41.WebexTeams.Version1.OAuth2.TeamsOAuth2Client(clientSecretString, clientId, retryHandler, retryNotificationFunc));
 }
 /// <summary>
 /// Creates Teams Admin API client for v1 API with retry feature.
 /// <see cref="TeamsRetryHandler"/> or <see cref="TeamsRetryOnErrorHandler"/> can be specified so that the client can retry on HTTP 429 and optinally 500, 502, 503 and 504 response.
 /// </summary>
 /// <param name="tokenInfo">Teams API token info.</param>
 /// <param name="retryHandler">Handler for retry.</param>
 /// <param name="retryNotificationFunc">Notification func where is notified before a retry. The func receives <see cref="TeamsResultInfo"/> for response info and int for trial counter. If the func returns false, the retry is cancelled.</param>
 /// <returns>Teams Admin API client for v1 API.</returns>
 public static Thrzn41.WebexTeams.Version1.Admin.TeamsAdminAPIClient CreateVersion1AdminClient(Thrzn41.WebexTeams.Version1.AccessTokenInfo tokenInfo, TeamsRetry retryHandler, Func <TeamsResultInfo, int, bool> retryNotificationFunc = null)
 {
     return(new Thrzn41.WebexTeams.Version1.Admin.TeamsAdminAPIClient(tokenInfo.AccessToken, retryHandler, retryNotificationFunc));
 }
 /// <summary>
 /// Creates Teams Admin API client for v1 API with retry feature.
 /// <see cref="TeamsRetryHandler"/> or <see cref="TeamsRetryOnErrorHandler"/> can be specified so that the client can retry on HTTP 429 and optinally 500, 502, 503 and 504 response.
 /// </summary>
 /// <param name="tokenChars">Teams API token of char array.</param>
 /// <param name="retryHandler">Handler for retry.</param>
 /// <param name="retryNotificationFunc">Notification func where is notified before a retry. The func receives <see cref="TeamsResultInfo"/> for response info and int for trial counter. If the func returns false, the retry is cancelled.</param>
 /// <returns>Teams Admin API client for v1 API.</returns>
 public static Thrzn41.WebexTeams.Version1.Admin.TeamsAdminAPIClient CreateVersion1AdminClient(char[] tokenChars, TeamsRetry retryHandler, Func <TeamsResultInfo, int, bool> retryNotificationFunc = null)
 {
     return(CreateVersion1AdminClient(new String(tokenChars), retryHandler, retryNotificationFunc));
 }
 /// <summary>
 /// Creates Teams API client for v1 API with retry feature.
 /// <see cref="TeamsRetryHandler"/> or <see cref="TeamsRetryOnErrorHandler"/> can be specified so that the client can retry on HTTP 429 and optinally 500, 502, 503 and 504 response.
 /// </summary>
 /// <param name="tokenString">Teams API token of string.</param>
 /// <param name="retryHandler">Handler for retry.</param>
 /// <param name="retryNotificationFunc">Notification func where is notified before a retry. The func receives <see cref="TeamsResultInfo"/> for response info and int for trial counter. If the func returns false, the retry is cancelled.</param>
 /// <returns>Teams API client for v1 API.</returns>
 public static Thrzn41.WebexTeams.Version1.TeamsAPIClient CreateVersion1Client(string tokenString, TeamsRetry retryHandler, Func <TeamsResultInfo, int, bool> retryNotificationFunc = null)
 {
     return(new Thrzn41.WebexTeams.Version1.TeamsAPIClient(tokenString, retryHandler, retryNotificationFunc));
 }