utils library

Enums

BandwidthPriority
see libtransmission/transmission.h::tr_priority_t since Normal is 0, memset initializes nicely
HttpProtocol
IdleLimitMode
RatioLimitMode
ServerErrorCode
TorrentStatus

Constants

kMaxRpcTag → const int
kUint8Max → const int

Functions

buildRequestParam1<S extends RequestParam, V>(ServerRpcVersion? version, V arg, {String? label, Iterable<ParamBuilderEntry1<S, V>> versionBuilers = const [], required S nullVersionBuilder(V arg), S defaultVersionBuilder(V arg)?}) → S
buildRequestParam2<S extends RequestParam, V1, V2>(ServerRpcVersion? version, V1 arg1, V2 arg2, {String? label, Iterable<ParamBuilderEntry2<S, V1, V2>> versionBuilers = const [], required S nullVersionBuilder(V1 arg1, V2 arg2), S defaultVersionBuilder(V1 arg1, V2 arg2)?}) → S
buildResponseParam1<S extends ResponseParam, V>(ServerRpcVersion? version, V arg, {String? label, Iterable<ParamBuilderEntry1<S, V>> versionBuilers = const [], required S nullVersionBuilder(V arg), S defaultVersionBuilder(V arg)?}) → S
buildResponseParam2<S extends ResponseParam, V1, V2>(ServerRpcVersion? version, V1 arg1, V2 arg2, {String? label, Iterable<ParamBuilderEntry2<S, V1, V2>> versionBuilers = const [], required S nullVersionBuilder(V1 arg1, V2 arg2), S defaultVersionBuilder(V1 arg1, V2 arg2)?}) → S
toRpcJsonByType<T>(dynamic val) → dynamic

Typedefs

ApiResponse<T extends RequestParam, V extends ResponseParam> = TransmissionRpcResponse<V, TransmissionRpcRequest<T>>
BlocklistUpdateResponse = ApiResponse<BlocklistUpdateRequestParam, BlocklistUpdateResponseParam>
FreeSpaceResponse = ApiResponse<FreeSpaceRequestParam, FreeSpaceResponseParam>
GroupGetResponse = ApiResponse<GroupGetRequestParam, GroupGetResponseParam>
GroupSetResponse = ApiResponse<GroupSetRequestParam, GroupSetResponseParam>
JsonMap = Map<String, dynamic>
ParamBuilderEntry1<S, V> = MapEntry<int, S Function(V)>
ParamBuilderEntry2<S, V1, V2> = MapEntry<int, S Function(V1, V2)>
PortTestResponse = ApiResponse<PorTestRequestParam, PortTestResponseParam>
QueueMoveResponse<T extends QueueMoveRequestParam> = ApiResponse<T, QueueMoveResponseParam>
RpcTag = num
SessionCloseResponse = ApiResponse<SessionCloseRequestParam, SessionCloseResponseParam>
SessionGetResponse = ApiResponse<SessionGetRequestParam, SessionGetResponseParam>
SessionSetResponse = ApiResponse<SessionSetRequestParam, SessionSetResponseParam>
SessionStatsResponse = ApiResponse<SessionStatsRequestParam, SessionStatsResponseParam>
TorrentActionResponse<T extends TorrentActionReqeustParam> = ApiResponse<T, TorrentActionResponseParam>
TorrentAddResponse = ApiResponse<TorrentAddRequestParam, TorrentAddResponseParam>
TorrentGetResponse = ApiResponse<TorrentGetRequestParam, TorrentGetResponseParam>
TorrentRemoveResponse = ApiResponse<TorrentRemoveRequestParam, TorrentRemoveResponseParam>
TorrentRenamePathResponse = ApiResponse<TorrentRenamePathRequestParam, TorrentRenamePathResponseParam>
TorrentSetLocationResponse = ApiResponse<TorrentSetLocationRequestParam, TorrentSetLocationResponseParam>
TorrentSetResponse = ApiResponse<TorrentSetRequestParam, TorrentSetResponseParam>
TrackerId = num
TrackerList = List<List<String>>
TrackerListIter = Iterable<Iterable<String>>