コード例 #1
0
        static async Task UpdateFreindshipSettingsAsync(TwitterContext twitterCtx)
        {
            Friendship friend = 
                await twitterCtx.UpdateFriendshipSettingsAsync(
                    "Linq2Twitr", true, true);

            if (friend != null && friend.SourceRelationship != null)
                Console.WriteLine(
                    "Settings for {0} are: Can Retweet is {1} " +
                    "and Can Send Device Notifications is {2}",
                    friend.SourceRelationship.ScreenName,
                    friend.SourceRelationship.RetweetsWanted,
                    friend.SourceRelationship.NotificationsEnabled);
        }