﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SlackAPI
{
    public class TeamPreferences
    {
        public AuthMode auth_mode;
        public string[] default_channels;
        public bool display_real_names;
        public bool gateway_allow_irc_plain;
        public bool gateway_allow_irc_ssl;
        public bool gateway_allow_xmpp_ssl;
        public bool hide_referers;
        public int msg_edit_window_mins;
        public bool srvices_only_admins;
        public bool stats_only_admins;

        public enum AuthMode
        {
            normal,
            saml,
            google
        }
    }
}

﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SlackAPI
{
    public class TeamPreferences
    {
        public AuthMode auth_mode;
        public string[] default_channels;
        public bool display_real_names;
        public bool gateway_allow_irc_plain;
        public bool gateway_allow_irc_ssl;
        public bool gateway_allow_xmpp_ssl;
        public bool hide_referers;
        public int msg_edit_window_mins;
        public bool srvices_only_admins;
        public bool? stats_only_admins;

        public enum AuthMode
        {
            normal,
            saml,
            google
        }
    }
}

Make stats_only_admins a nullable bool, we're seeing this cause json deserialization exceptions when calling SlackClient.ConnectAsync()
Make stats_only_admins a nullable bool, we're seeing this cause json deserialization exceptions when calling SlackClient.ConnectAsync()
