/// <summary> /// Initializes a new instance of the <see cref="GetListsCommand"/> class. /// </summary> /// <param name="requestTokens">The request tokens.</param> /// <param name="options">The options.</param> /// <remarks></remarks> public GetListsCommand(OAuthTokens requestTokens, GetListsOptions options) : base(HTTPVerb.GET, "lists.json", requestTokens, options) { if (requestTokens == null) { throw new ArgumentNullException("requestTokens"); } this.DeserializationHandler = TwitterListCollection.Deserialize; }
/// <summary> /// Initializes the command. /// </summary> public override void Init() { GetListsOptions options = this.OptionalProperties as GetListsOptions; if (options == null || options.Cursor == 0) { this.RequestParameters.Add("cursor", "-1"); } else { this.RequestParameters.Add("cursor", options.Cursor.ToString(CultureInfo.InvariantCulture)); } }