コード例 #1
0
 /// <summary>
 /// <para>Retrieve tag timeline.</para>
 /// <para>Available parameters:</para>
 /// <para>- <c>string</c> hashtag (required)</para>
 /// <para>- <c>bool</c> local (optional)</para>
 /// <para>- <c>long</c> max_id (optional)</para>
 /// <para>- <c>long</c> since_id (optional)</para>
 /// <para>- <c>int</c> limit (optional)</para>
 /// <para>- <c>bool</c> only_media (optional)</para>
 /// </summary>
 /// <param name="parameters">The parameters.</param>
 /// <returns>
 /// <para>The task object representing the asynchronous operation.</para>
 /// <para>The Result property on the task object returns the list of status object.</para>
 /// </returns>
 public Task <Linked <Status> > TagAsync(params Expression <Func <string, object> >[] parameters)
 {
     return(Tokens.AccessParameterReservedApiAsync <Linked <Status> >(MethodType.Get, "timelines/tag/{hashtag}", "hashtag", Utils.ExpressionToDictionary(parameters)));
 }
コード例 #2
0
 /// <summary>
 /// <para>Endorse an account, i.e. choose to feature the account on the user’s public profile.</para>
 /// <para>Available parameters:</para>
 /// <para>- <c>long</c> id (required)</para>
 /// </summary>
 /// <param name="parameters">The parameters.</param>
 /// <returns>
 /// <para>The task object representing the asynchronous operation.</para>
 /// <para>The Result property on the task object returns the relationship object.</para>
 /// </returns>
 public Task <Relationship> PinAsync(IDictionary <string, object> parameters)
 {
     return(Tokens.AccessParameterReservedApiAsync <Relationship>(MethodType.Post, "accounts/{id}/pin", "id", parameters));
 }
コード例 #3
0
ファイル: Notifications.cs プロジェクト: naminodarie/TootNet
 /// <summary>
 /// <para>Returns single notification object specified by the required id parameter.</para>
 /// <para>Available parameters:</para>
 /// <para>- <c>long</c> id (required)</para>
 /// </summary>
 /// <param name="parameters">The parameters.</param>
 /// <returns>
 /// <para>The task object representing the asynchronous operation.</para>
 /// <para>The Result property on the task object returns the notification object.</para>
 /// </returns>
 public Task <Notification> IdAsync(params Expression <Func <string, object> >[] parameters)
 {
     return(Tokens.AccessParameterReservedApiAsync <Notification>(MethodType.Get, "notifications/{id}", "id", Utils.ExpressionToDictionary(parameters)));
 }
コード例 #4
0
ファイル: Statuses.cs プロジェクト: naminodarie/TootNet
 /// <summary>
 /// <para>Unpin an status.</para>
 /// <para>Available parameters:</para>
 /// <para>- <c>long</c> id (required)</para>
 /// </summary>
 /// <param name="parameters">The parameters.</param>
 /// <returns>
 /// <para>The task object representing the asynchronous operation.</para>
 /// <para>The Result property on the task object returns the status object.</para>
 /// </returns>
 public Task<Status> UnpinAsync(params Expression<Func<string, object>>[] parameters)
 {
     return Tokens.AccessParameterReservedApiAsync<Status>(MethodType.Post, "statuses/{id}/unpin", "id", Utils.ExpressionToDictionary(parameters));
 }
コード例 #5
0
ファイル: Statuses.cs プロジェクト: naminodarie/TootNet
 /// <summary>
 /// <para>Returns a card specified by the required id parameter.</para>
 /// <para>Available parameters:</para>
 /// <para>- <c>long</c> id (required)</para>
 /// </summary>
 /// <param name="parameters">The parameters.</param>
 /// <returns>
 /// <para>The task object representing the asynchronous operation.</para>
 /// <para>The Result property on the task object returns the card object.</para>
 /// </returns>
 public Task<Card> CardAsync(params Expression<Func<string, object>>[] parameters)
 {
     return Tokens.AccessParameterReservedApiAsync<Card>(MethodType.Get, "statuses/{id}/card", "id", Utils.ExpressionToDictionary(parameters));
 }
コード例 #6
0
ファイル: Statuses.cs プロジェクト: naminodarie/TootNet
 /// <summary>
 /// <para>Get who favourited a status.</para>
 /// <para>Available parameters:</para>
 /// <para>- <c>long</c> id (required)</para>
 /// <para>- <c>long</c> max_id (optional)</para>
 /// <para>- <c>long</c> since_id (optional)</para>
 /// <para>- <c>int</c> limit (optional)</para>
 /// </summary>
 /// <param name="parameters">The parameters.</param>
 /// <returns>
 /// <para>The task object representing the asynchronous operation.</para>
 /// <para>The Result property on the task object returns list of account object.</para>
 /// </returns>
 public Task<Linked<Account>> FavouritedByAsync(params Expression<Func<string, object>>[] parameters)
 {
     return Tokens.AccessParameterReservedApiAsync<Linked<Account>>(MethodType.Get, "statuses/{id}/favourited_by", "id", Utils.ExpressionToDictionary(parameters));
 }
コード例 #7
0
ファイル: Statuses.cs プロジェクト: naminodarie/TootNet
 /// <summary>
 /// <para>Delete a status.</para>
 /// <para>Available parameters:</para>
 /// <para>- <c>long</c> id (required)</para>
 /// </summary>
 /// <param name="parameters">The parameters.</param>
 /// <returns>
 /// <para>The task object representing the asynchronous operation.</para>
 /// <para>The Result property on the task object returns the empty object.</para>
 /// </returns>
 public Task DeleteAsync(params Expression<Func<string, object>>[] parameters)
 {
     return Tokens.AccessParameterReservedApiAsync(MethodType.Delete, "statuses/{id}", "id", Utils.ExpressionToDictionary(parameters));
 }
コード例 #8
0
ファイル: Mutes.cs プロジェクト: naminodarie/TootNet
 /// <summary>
 /// <para>Mute an status.</para>
 /// <para>Available parameters:</para>
 /// <para>- <c>long</c> id (required)</para>
 /// </summary>
 /// <param name="parameters">The parameters.</param>
 /// <returns>
 /// <para>The task object representing the asynchronous operation.</para>
 /// <para>The Result property on the task object returns the status object.</para>
 /// </returns>
 public Task <Status> MuteStatusAsync(IDictionary <string, object> parameters)
 {
     return(Tokens.AccessParameterReservedApiAsync <Status>(MethodType.Post, "statuses/{id}/mute", "id", parameters));
 }
コード例 #9
0
ファイル: Filters.cs プロジェクト: naminodarie/TootNet
 /// <summary>
 /// <para>Updates a filter.</para>
 /// <para>allowed values of context: "home", "notifications", "public", "thread"</para>
 /// <para>Available parameters:</para>
 /// <para>- <c>long</c> id (required)</para>
 /// <para>- <c>string</c> phrase (required)</para>
 /// <para>- <c>IEnumerable&lt;string&gt;</c> context (required)</para>
 /// <para>- <c>bool</c> irreversible (optional)</para>
 /// <para>- <c>bool</c> whole_word (optional)</para>
 /// <para>- <c>int</c> expires_in (optional)</para>
 /// </summary>
 /// <param name="parameters">The parameters.</param>
 /// <returns>
 /// <para>The task object representing the asynchronous operation.</para>
 /// <para>The Result property on the task object returns the filter object.</para>
 /// </returns>
 public Task <Filter> UpdateAsync(IDictionary <string, object> parameters)
 {
     return(Tokens.AccessParameterReservedApiAsync <Filter>(MethodType.Put, "filters/{id}", "id", parameters));
 }
コード例 #10
0
 /// <summary>
 /// <para>Authorize follow requests.</para>
 /// <para>Available parameters:</para>
 /// <para>- <c>long</c> id (required)</para>
 /// </summary>
 /// <param name="parameters">The parameters.</param>
 /// <returns>
 /// <para>The task object representing the asynchronous operation.</para>
 /// <para>The Result property on the task object returns the empty object.</para>
 /// </returns>
 public Task AuthorizeAsync(IDictionary <string, object> parameters)
 {
     return(Tokens.AccessParameterReservedApiAsync(MethodType.Post, "follow_requests/{id}/authorize", "id", parameters));
 }
コード例 #11
0
 /// <summary>
 /// <para>Reject follow requests.</para>
 /// <para>Available parameters:</para>
 /// <para>- <c>long</c> id (required)</para>
 /// </summary>
 /// <param name="parameters">The parameters.</param>
 /// <returns>
 /// <para>The task object representing the asynchronous operation.</para>
 /// <para>The Result property on the task object returns the empty object.</para>
 /// </returns>
 public Task RejectAsync(params Expression <Func <string, object> >[] parameters)
 {
     return(Tokens.AccessParameterReservedApiAsync(MethodType.Post, "follow_requests/{id}/reject", "id", Utils.ExpressionToDictionary(parameters)));
 }
コード例 #12
0
 /// <summary>
 /// <para>Retrieve list timeline.</para>
 /// <para>Available parameters:</para>
 /// <para>- <c>long</c> list_id (required)</para>
 /// <para>- <c>long</c> max_id (optional)</para>
 /// <para>- <c>long</c> since_id (optional)</para>
 /// <para>- <c>int</c> limit (optional)</para>
 /// </summary>
 /// <param name="parameters">The parameters.</param>
 /// <returns>
 /// <para>The task object representing the asynchronous operation.</para>
 /// <para>The Result property on the task object returns the list of status object.</para>
 /// </returns>
 public Task <Linked <Status> > ListAsync(IDictionary <string, object> parameters)
 {
     return(Tokens.AccessParameterReservedApiAsync <Linked <Status> >(MethodType.Get, "timelines/list/{list_id}", "list_id", parameters));
 }
コード例 #13
0
 /// <summary>
 /// <para>Retrieve list timeline.</para>
 /// <para>Available parameters:</para>
 /// <para>- <c>long</c> list_id (required)</para>
 /// <para>- <c>long</c> max_id (optional)</para>
 /// <para>- <c>long</c> since_id (optional)</para>
 /// <para>- <c>int</c> limit (optional)</para>
 /// </summary>
 /// <param name="parameters">The parameters.</param>
 /// <returns>
 /// <para>The task object representing the asynchronous operation.</para>
 /// <para>The Result property on the task object returns the list of status object.</para>
 /// </returns>
 public Task <Linked <Status> > ListAsync(params Expression <Func <string, object> >[] parameters)
 {
     return(Tokens.AccessParameterReservedApiAsync <Linked <Status> >(MethodType.Get, "timelines/list/{list_id}", "list_id", Utils.ExpressionToDictionary(parameters)));
 }
コード例 #14
0
 /// <summary>
 /// <para>Retrieve tag timeline.</para>
 /// <para>Available parameters:</para>
 /// <para>- <c>string</c> hashtag (required)</para>
 /// <para>- <c>bool</c> local (optional)</para>
 /// <para>- <c>long</c> max_id (optional)</para>
 /// <para>- <c>long</c> since_id (optional)</para>
 /// <para>- <c>int</c> limit (optional)</para>
 /// <para>- <c>bool</c> only_media (optional)</para>
 /// </summary>
 /// <param name="parameters">The parameters.</param>
 /// <returns>
 /// <para>The task object representing the asynchronous operation.</para>
 /// <para>The Result property on the task object returns the list of status object.</para>
 /// </returns>
 public Task <Linked <Status> > TagAsync(IDictionary <string, object> parameters)
 {
     return(Tokens.AccessParameterReservedApiAsync <Linked <Status> >(MethodType.Get, "timelines/tag/{hashtag}", "hashtag", parameters));
 }
コード例 #15
0
ファイル: Accounts.cs プロジェクト: YDKK/TootNet
 /// <summary>
 /// <para>Retrieving lists by membership.</para>
 /// <para>Available parameters:</para>
 /// <para>- <c>long</c> id (required)</para>
 /// </summary>
 /// <param name="parameters">The parameters.</param>
 /// <returns>
 /// <para>The task object representing the asynchronous operation.</para>
 /// <para>The Result property on the task object returns the list of list object.</para>
 /// </returns>
 public Task <Linked <List> > ListsAsync(params Expression <Func <string, object> >[] parameters)
 {
     return(Tokens.AccessParameterReservedApiAsync <Linked <List> >(MethodType.Get, "accounts/{id}/lists", "id", Utils.ExpressionToDictionary(parameters)));
 }
コード例 #16
0
 /// <summary>
 /// <para>Deletes a user from follow suggestions.</para>
 /// <para>Available parameters:</para>
 /// <para>- <c>long</c> account_id (required)</para>
 /// </summary>
 /// <param name="parameters">The parameters.</param>
 /// <returns>
 /// <para>The task object representing the asynchronous operation.</para>
 /// <para>The Result property on the task object returns the empty object.</para>
 /// </returns>
 public Task DeleteAsync(params Expression <Func <string, object> >[] parameters)
 {
     return(Tokens.AccessParameterReservedApiAsync(MethodType.Delete, "suggestions/{account_id}", "account_id", Utils.ExpressionToDictionary(parameters)));
 }
コード例 #17
0
ファイル: Accounts.cs プロジェクト: YDKK/TootNet
 /// <summary>
 /// <para>Retrieving lists by membership.</para>
 /// <para>Available parameters:</para>
 /// <para>- <c>long</c> id (required)</para>
 /// </summary>
 /// <param name="parameters">The parameters.</param>
 /// <returns>
 /// <para>The task object representing the asynchronous operation.</para>
 /// <para>The Result property on the task object returns the list of list object.</para>
 /// </returns>
 public Task <Linked <List> > ListsAsync(IDictionary <string, object> parameters)
 {
     return(Tokens.AccessParameterReservedApiAsync <Linked <List> >(MethodType.Get, "accounts/{id}/lists", "id", parameters));
 }
コード例 #18
0
 /// <summary>
 /// <para>Deletes a user from follow suggestions.</para>
 /// <para>Available parameters:</para>
 /// <para>- <c>long</c> account_id (required)</para>
 /// </summary>
 /// <param name="parameters">The parameters.</param>
 /// <returns>
 /// <para>The task object representing the asynchronous operation.</para>
 /// <para>The Result property on the task object returns the empty object.</para>
 /// </returns>
 public Task DeleteAsync(IDictionary <string, object> parameters)
 {
     return(Tokens.AccessParameterReservedApiAsync(MethodType.Delete, "suggestions/{account_id}", "account_id", parameters));
 }
コード例 #19
0
ファイル: Statuses.cs プロジェクト: naminodarie/TootNet
 /// <summary>
 /// <para>Get who favourited a status.</para>
 /// <para>Available parameters:</para>
 /// <para>- <c>long</c> id (required)</para>
 /// <para>- <c>long</c> max_id (optional)</para>
 /// <para>- <c>long</c> since_id (optional)</para>
 /// <para>- <c>int</c> limit (optional)</para>
 /// </summary>
 /// <param name="parameters">The parameters.</param>
 /// <returns>
 /// <para>The task object representing the asynchronous operation.</para>
 /// <para>The Result property on the task object returns list of account object.</para>
 /// </returns>
 public Task<Linked<Account>> FavouritedByAsync(IDictionary<string, object> parameters)
 {
     return Tokens.AccessParameterReservedApiAsync<Linked<Account>>(MethodType.Get, "statuses/{id}/favourited_by", "id", parameters);
 }
コード例 #20
0
ファイル: Media.cs プロジェクト: YDKK/TootNet
 /// <summary>
 /// <para>Update a media attachment.</para>
 /// <para>Available parameters:</para>
 /// <para>- <c>long</c> id (required)</para>
 /// <para>- <c>string</c> description (optional)</para>
 /// <para>- <c>string</c> focus (focal point: two floating points, comma-delimited) (optional)</para>
 /// </summary>
 /// <param name="parameters">The parameters.</param>
 /// <returns>
 /// <para>The task object representing the asynchronous operation.</para>
 /// <para>The Result property on the task object returns the attachment object.</para>
 /// </returns>
 public Task <Attachment> UpdateAsync(params Expression <Func <string, object> >[] parameters)
 {
     return(Tokens.AccessParameterReservedApiAsync <Attachment>(MethodType.Put, "media/{id}", "id", Utils.ExpressionToDictionary(parameters)));
 }
コード例 #21
0
ファイル: Statuses.cs プロジェクト: naminodarie/TootNet
 /// <summary>
 /// <para>Delete a status.</para>
 /// <para>Available parameters:</para>
 /// <para>- <c>long</c> id (required)</para>
 /// </summary>
 /// <param name="parameters">The parameters.</param>
 /// <returns>
 /// <para>The task object representing the asynchronous operation.</para>
 /// <para>The Result property on the task object returns the empty object.</para>
 /// </returns>
 public Task DeleteAsync(IDictionary<string, object> parameters)
 {
     return Tokens.AccessParameterReservedApiAsync(MethodType.Delete, "statuses/{id}", "id", parameters);
 }
コード例 #22
0
ファイル: Media.cs プロジェクト: YDKK/TootNet
 /// <summary>
 /// <para>Update a media attachment.</para>
 /// <para>Available parameters:</para>
 /// <para>- <c>long</c> id (required)</para>
 /// <para>- <c>string</c> description (optional)</para>
 /// <para>- <c>string</c> focus (focal point: two floating points, comma-delimited) (optional)</para>
 /// </summary>
 /// <param name="parameters">The parameters.</param>
 /// <returns>
 /// <para>The task object representing the asynchronous operation.</para>
 /// <para>The Result property on the task object returns the attachment object.</para>
 /// </returns>
 public Task <Attachment> UpdateAsync(IDictionary <string, object> parameters)
 {
     return(Tokens.AccessParameterReservedApiAsync <Attachment>(MethodType.Put, "media/{id}", "id", parameters));
 }
コード例 #23
0
ファイル: Statuses.cs プロジェクト: naminodarie/TootNet
 /// <summary>
 /// <para>Unpin an status.</para>
 /// <para>Available parameters:</para>
 /// <para>- <c>long</c> id (required)</para>
 /// </summary>
 /// <param name="parameters">The parameters.</param>
 /// <returns>
 /// <para>The task object representing the asynchronous operation.</para>
 /// <para>The Result property on the task object returns the status object.</para>
 /// </returns>
 public Task<Status> UnpinAsync(IDictionary<string, object> parameters)
 {
     return Tokens.AccessParameterReservedApiAsync<Status>(MethodType.Post, "statuses/{id}/unpin", "id", parameters);
 }
コード例 #24
0
 /// <summary>
 /// <para>Get scheduled status.</para>
 /// <para>Available parameters:</para>
 /// <para>- <c>long</c> id (required)</para>
 /// </summary>
 /// <param name="parameters">The parameters.</param>
 /// <returns>
 /// <para>The task object representing the asynchronous operation.</para>
 /// <para>The Result property on the task object returns the scheduledstatus object.</para>
 /// </returns>
 public Task <ScheduledStatus> IdAsync(IDictionary <string, object> parameters)
 {
     return(Tokens.AccessParameterReservedApiAsync <ScheduledStatus>(MethodType.Get, "scheduled_statuses/{id}", "id", parameters));
 }
コード例 #25
0
ファイル: Statuses.cs プロジェクト: naminodarie/TootNet
 /// <summary>
 /// <para>Returns a card specified by the required id parameter.</para>
 /// <para>Available parameters:</para>
 /// <para>- <c>long</c> id (required)</para>
 /// </summary>
 /// <param name="parameters">The parameters.</param>
 /// <returns>
 /// <para>The task object representing the asynchronous operation.</para>
 /// <para>The Result property on the task object returns the card object.</para>
 /// </returns>
 public Task<Card> CardAsync(IDictionary<string, object> parameters)
 {
     return Tokens.AccessParameterReservedApiAsync<Card>(MethodType.Get, "statuses/{id}/card", "id", parameters);
 }
コード例 #26
0
 /// <summary>
 /// <para>Update Scheduled status.</para>
 /// <para>format of scheduled_at: "2019-01-01 12:00:00"</para>
 /// <para>Available parameters:</para>
 /// <para>- <c>long</c> id (required)</para>
 /// <para>- <c>string</c> scheduled_at (optional)</para>
 /// </summary>
 /// <param name="parameters">The parameters.</param>
 /// <returns>
 /// <para>The task object representing the asynchronous operation.</para>
 /// <para>The Result property on the task object returns the scheduledstatus object.</para>
 /// </returns>
 public Task <ScheduledStatus> UpdateAsync(params Expression <Func <string, object> >[] parameters)
 {
     return(Tokens.AccessParameterReservedApiAsync <ScheduledStatus>(MethodType.Put, "scheduled_statuses/{id}", "id", Utils.ExpressionToDictionary(parameters)));
 }
コード例 #27
0
 /// <summary>
 /// <para>Undo endorse of an account.</para>
 /// <para>Available parameters:</para>
 /// <para>- <c>long</c> id (required)</para>
 /// </summary>
 /// <param name="parameters">The parameters.</param>
 /// <returns>
 /// <para>The task object representing the asynchronous operation.</para>
 /// <para>The Result property on the task object returns the relationship object.</para>
 /// </returns>
 public Task <Relationship> UnpinAsync(params Expression <Func <string, object> >[] parameters)
 {
     return(Tokens.AccessParameterReservedApiAsync <Relationship>(MethodType.Post, "accounts/{id}/unpin", "id", Utils.ExpressionToDictionary(parameters)));
 }
コード例 #28
0
ファイル: Accounts.cs プロジェクト: YDKK/TootNet
 /// <summary>
 /// <para>Returns a variety of information about the user specified by the required id parameter.</para>
 /// <para>Available parameters:</para>
 /// <para>- <c>long</c> id (required)</para>
 /// </summary>
 /// <param name="parameters">The parameters.</param>
 /// <returns>
 /// <para>The task object representing the asynchronous operation.</para>
 /// <para>The Result property on the task object returns the account object.</para>
 /// </returns>
 public Task <Account> IdAsync(IDictionary <string, object> parameters)
 {
     return(Tokens.AccessParameterReservedApiAsync <Account>(MethodType.Get, "accounts/{id}", "id", parameters));
 }
コード例 #29
0
ファイル: Notifications.cs プロジェクト: naminodarie/TootNet
 /// <summary>
 /// <para>Returns single notification object specified by the required id parameter.</para>
 /// <para>Available parameters:</para>
 /// <para>- <c>long</c> id (required)</para>
 /// </summary>
 /// <param name="parameters">The parameters.</param>
 /// <returns>
 /// <para>The task object representing the asynchronous operation.</para>
 /// <para>The Result property on the task object returns the notification object.</para>
 /// </returns>
 public Task <Notification> IdAsync(IDictionary <string, object> parameters)
 {
     return(Tokens.AccessParameterReservedApiAsync <Notification>(MethodType.Get, "notifications/{id}", "id", parameters));
 }
コード例 #30
0
ファイル: Statuses.cs プロジェクト: YDKK/TootNet
 /// <summary>
 /// <para>Returns a context specified by the required id parameter.</para>
 /// <para>Available parameters:</para>
 /// <para>- <c>long</c> id (required)</para>
 /// </summary>
 /// <param name="parameters">The parameters.</param>
 /// <returns>
 /// <para>The task object representing the asynchronous operation.</para>
 /// <para>The Result property on the task object returns the context object.</para>
 /// </returns>
 public Task <Context> ContextAsync(IDictionary <string, object> parameters)
 {
     return(Tokens.AccessParameterReservedApiAsync <Context>(MethodType.Get, "statuses/{id}/context", "id", parameters));
 }