Пример #1
0
        static async Task UpdateAccountSettingsAsync(TwitterContext twitterCtx)
        {
            Account acct = 
                await twitterCtx.UpdateAccountSettingsAsync(
                    null, true, 20, 6, null, null);

            if (acct != null && 
                acct.Settings != null && 
                acct.Settings.SleepTime != null)
            {
                SleepTime sleep = acct.Settings.SleepTime;
                Console.WriteLine(
                    "Enabled: {0}, Start: {1}, End: {2}",
                    sleep.Enabled, sleep.StartHour, sleep.EndHour); 
            }
        }