Beispiel #1
0
 /// <summary>
 /// Bumps the specified thread using the current token user's bytes.
 /// Requires <see cref="APIPermission.POSTSWRITE" />
 /// <summary>
 /// <param name="threadId">The id of the thread to bump.</param>
 public ByteTransactionResult ByteTransactionBumpThread(int threadId) => ByteTransactionRequest.BumpThread(Client, threadId);
Beispiel #2
0
 /// <summary>
 /// Withdraws the specified amount of bytes from the current token user's vault.
 /// Requires <see cref="APIPermission.POSTSWRITE" />
 /// <summary>
 /// <param name="amount">The amount of bytes to withdraw.</param>
 public ByteTransactionResult ByteTransactionWithdraws(decimal amount) => ByteTransactionRequest.Withdraws(Client, amount);
Beispiel #3
0
 /// <summary>
 /// Deposits the specified amount of bytes to the current token user's vault.
 /// Requires <see cref="APIPermission.POSTSWRITE" />
 /// <summary>
 /// <param name="amount">The amount of bytes to deposit.</param>
 public ByteTransactionResult ByteTransactionDeposit(decimal amount) => ByteTransactionRequest.Deposit(Client, amount);
Beispiel #4
0
 /// <summary>
 /// Donates bytes from the current token user to the specified user.
 /// Requires <see cref="APIPermission.POSTSWRITE" />
 /// <summary>
 /// <param name="forumId">The user id to donate the bytes to.</param>
 /// <param name="amount">The amount of bytes to send.</param>
 /// <param name="reason">The message to post.</param>
 /// <param name="postId">The post id to link this donation to.</param>
 public ByteTransactionResult ByteTransactionDonate(int forumId, decimal amount, string reason = null, long postId = 0) => ByteTransactionRequest.Donate(Client, forumId, amount, reason, postId);
Beispiel #5
0
 /// <summary>
 /// Searches all the byte transactions sent to the specified user.
 /// Requires <see cref="APIPermission.BYTES" />
 /// <summary>
 /// <param name="userId">The user id.</param>
 /// <param name="page">The page number.</param>
 /// <param name="perPage">The number of results per page.</param>
 public ByteTransactionResult[] ByteTransactionSearchByToUserId(int userId, int page = 1, int perPage = 1) => ByteTransactionRequest.SearchByToUserId(Client, userId, page, perPage);
Beispiel #6
0
 /// <summary>
 /// Gets the byte transaction from the specified transaction id.
 /// Requires <see cref="APIPermission.BYTES" />
 /// <summary>
 /// <param name="transactionId">The byte transaction id.</param>
 public ByteTransactionResult ByteTransactionGet(int transactionId) => ByteTransactionRequest.Get(Client, transactionId);