Task<(ForumResponse , ValidationResult )> GetMessagesAsync(
Guid topicID,
bool isSuperModeratorModeEnabled,
int messagesCount,
int pageNumber = -1,
Guid? messageID = null,
DateTime? lastReadMessageTime = null,
bool isNeedUpdateLastReadMessageTime = true,
string searchText = null,
bool reverseOrder = false,
CancellationToken cancellationToken = default
)
Function GetMessagesAsync (
topicID As Guid,
isSuperModeratorModeEnabled As Boolean,
messagesCount As Integer,
Optional pageNumber As Integer = -1,
Optional messageID As Guid? = Nothing,
Optional lastReadMessageTime As DateTime? = Nothing,
Optional isNeedUpdateLastReadMessageTime As Boolean = true,
Optional searchText As String = Nothing,
Optional reverseOrder As Boolean = false,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of ( As ForumResponse, As ValidationResult))
Task<ValueTuple<ForumResponse^, ValidationResult^>>^ GetMessagesAsync(
Guid topicID,
bool isSuperModeratorModeEnabled,
int messagesCount,
int pageNumber = -1,
Nullable<Guid> messageID = nullptr,
Nullable<DateTime> lastReadMessageTime = nullptr,
bool isNeedUpdateLastReadMessageTime = true,
String^ searchText = nullptr,
bool reverseOrder = false,
CancellationToken cancellationToken = CancellationToken()
)
abstract GetMessagesAsync :
topicID : Guid *
isSuperModeratorModeEnabled : bool *
messagesCount : int *
?pageNumber : int *
?messageID : Nullable<Guid> *
?lastReadMessageTime : Nullable<DateTime> *
?isNeedUpdateLastReadMessageTime : bool *
?searchText : string *
?reverseOrder : bool *
?cancellationToken : CancellationToken
(* Defaults:
let _pageNumber = defaultArg pageNumber -1
let _messageID = defaultArg messageID null
let _lastReadMessageTime = defaultArg lastReadMessageTime null
let _isNeedUpdateLastReadMessageTime = defaultArg isNeedUpdateLastReadMessageTime true
let _searchText = defaultArg searchText null
let _reverseOrder = defaultArg reverseOrder false
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ValueTuple<ForumResponse, ValidationResult>>
ForumResponse, в котором заполнено свойство Messages.
ValidationResult, содержащий информацию по возникшим ошибкам.