~ubuntu-branches/ubuntu/trusty/smuxi/trusty-proposed

« back to all changes in this revision

Viewing changes to lib/Twitterizer/Twitterizer2/Methods/Friendship/TwitterFriendship.cs

  • Committer: Package Import Robot
  • Author(s): Mirco Bauer
  • Date: 2013-05-25 22:11:31 UTC
  • mfrom: (1.2.12)
  • Revision ID: package-import@ubuntu.com-20130525221131-nd2mc0kzubuwyx20
Tags: 0.8.11-1
* [22d13d5] Imported Upstream version 0.8.11
* [6d2b95a] Refreshed patches
* [89eb66e] Added ServiceStack libraries to smuxi-engine package
* [848ab10] Enable Campfire engine
* [c6dbdc7] Always build db4o for predictable build result
* [13ec489] Exclude OS X specific libraries from dh_clideps

Show diffs side-by-side

added added

removed removed

Lines of Context:
485
485
            return OutgoingRequests(tokens, null);
486
486
        }
487
487
 
 
488
        /// <summary>
 
489
        /// Returns a collection of IDs that the user does not want to see retweets from.
 
490
        /// </summary>
 
491
        /// <param name="tokens">The tokens.</param>
 
492
        /// <param name="options">The options.</param>
 
493
        /// <returns></returns>
 
494
        public static TwitterResponse<UserIdCollection> NoRetweetIDs(OAuthTokens tokens, OptionalProperties options)
 
495
        {
 
496
            Commands.NoRetweetIDsCommand command = new Commands.NoRetweetIDsCommand(tokens, options);
 
497
            return Core.CommandPerformer.PerformAction(command);
 
498
        }
 
499
 
 
500
        /// <summary>
 
501
        /// Returns a collection of IDs that the user does not want to see retweets from.
 
502
        /// </summary>
 
503
        /// <param name="tokens">The tokens.</param>        
 
504
        /// <returns></returns>
 
505
        public static TwitterResponse<UserIdCollection> NoRetweetIDs(OAuthTokens tokens)
 
506
        {
 
507
            return NoRetweetIDs(tokens, null);
 
508
        }
 
509
 
 
510
        /// <summary>
 
511
        /// Updates a friendship for a user.
 
512
        /// </summary>
 
513
        /// <param name="tokens">The tokens.</param>
 
514
        /// <param name="userid">The userid.</param>
 
515
        /// <param name="options">The options.</param>
 
516
        /// <returns></returns>
 
517
        public static TwitterResponse<TwitterRelationship> Update(OAuthTokens tokens, decimal userid, UpdateFriendshipOptions options)
 
518
        {
 
519
            Commands.UpdateFriendshipCommand command = new Commands.UpdateFriendshipCommand(tokens, userid, options);
 
520
            return Core.CommandPerformer.PerformAction(command);
 
521
        }
 
522
 
 
523
        /// <summary>
 
524
        /// Updates a friendship for a user.
 
525
        /// </summary>
 
526
        /// <param name="tokens">The tokens.</param>
 
527
        /// <param name="userid">The userid.</param>
 
528
        /// <returns></returns>
 
529
        public static TwitterResponse<TwitterRelationship> Update(OAuthTokens tokens, decimal userid)
 
530
        {
 
531
            return Update(tokens, userid, null);
 
532
        }
 
533
 
 
534
        /// <summary>
 
535
        /// Updates a friendship for a user.
 
536
        /// </summary>
 
537
        /// <param name="tokens">The tokens.</param>
 
538
        /// <param name="screenname">The screenname.</param>
 
539
        /// <param name="options">The options.</param>
 
540
        /// <returns></returns>
 
541
        public static TwitterResponse<TwitterRelationship> Update(OAuthTokens tokens, string screenname, UpdateFriendshipOptions options)
 
542
        {
 
543
            Commands.UpdateFriendshipCommand command = new Commands.UpdateFriendshipCommand(tokens, screenname, options);
 
544
            return Core.CommandPerformer.PerformAction(command);
 
545
        }
 
546
 
 
547
        /// <summary>
 
548
        /// Updates a friendship for a user.
 
549
        /// </summary>
 
550
        /// <param name="tokens">The tokens.</param>
 
551
        /// <param name="screenname">The screenname.</param>
 
552
        /// <returns></returns>
 
553
        public static TwitterResponse<TwitterRelationship> Update(OAuthTokens tokens, string screenname)
 
554
        {
 
555
            return Update(tokens, screenname, null);
 
556
        }
 
557
 
488
558
    }
489
559
}