예제 #1
0
        /// <summary>
        /// Initialize a new service instance from the specified OAuth client.
        /// </summary>
        /// <param name="client">The OAuth client.</param>
        public static SlackService CreateFromOAuthClient(SlackOAuthClient client) {

            // This should never be null
            if (client == null) throw new ArgumentNullException("client");

            // Initialize the service
            return new SlackService(client);

        }
 internal SlackUsersRawEndpoint(SlackOAuthClient client) {
     Client = client;
 }
예제 #3
0
 private SlackService(SlackOAuthClient client) {
     Client = client;
     Authentication = new SlackAuthenticationEndpoint(this);
     Users = new SlackUsersEndpoint(this);
 }
 internal SlackAuthenticationRawEndpoint(SlackOAuthClient client) {
     Client = client;
 }