public QQConnectOptions(string clientId, string clientSecret, bool isMobile, ISet <string> scopes) { if (string.IsNullOrEmpty(clientId)) { throw new ArgumentNullException(nameof(clientId)); } ClientId = clientId; if (string.IsNullOrEmpty(clientSecret)) { throw new ArgumentNullException(nameof(clientSecret)); } ClientSecret = clientSecret; IsMobile = isMobile; Scopes.AddAll(scopes); }