/// <summary> /// Inits this instance. /// </summary> public override void Init() { OutgoingFriendshipsOptions options = this.OptionalProperties as OutgoingFriendshipsOptions; if (options == null || options.Cursor == 0) { this.RequestParameters.Add("cursor", "-1"); } else { this.RequestParameters.Add("Cursor", options.Cursor.ToString(CultureInfo.CurrentCulture)); } }
/// <summary> /// Initializes a new instance of the <see cref="IncomingFriendshipsCommand"/> class. /// </summary> /// <param name="tokens">The tokens.</param> /// <param name="options">The options.</param> public OutgoingFriendshipsCommand(OAuthTokens tokens, OutgoingFriendshipsOptions options) : base(HTTPVerb.GET, "friendships/outgoing.json", tokens, options) { this.DeserializationHandler = TwitterCursorPagedIdCollection.DeserializeWrapper; }