/// <summary> /// Initializes the command. /// </summary> public override void Init() { GetListSubscriptionsOptions options = this.OptionalProperties as GetListSubscriptionsOptions; 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="GetListSubscriptionsCommand"/> class. /// </summary> /// <param name="requestTokens">The request tokens.</param> /// <param name="userName">Name of the user.</param> /// <param name="options">The options.</param> /// <remarks></remarks> public GetListSubscriptionsCommand(OAuthTokens requestTokens, string userName, GetListSubscriptionsOptions options) : base(HttpMethod.Get, string.Format("{0}/lists/subscriptions.json", userName), requestTokens, options) { if (requestTokens == null) { throw new ArgumentNullException("requestTokens"); } this.DeserializationHandler = TwitterListCollection.Deserialize; }