mirror of
https://github.com/lux-tel/session-ios.git
synced 2026-10-30 20:38:32 +00:00
• Cleaned up API structures to be more consistent • Moved OpenGroupAPI into SessionNetworkingKit • Moved PushNotificationAPI into SessionNetworkingKit • Renamed to OpenGroupAPI to SOGSAPI
22 lines
778 B
Swift
22 lines
778 B
Swift
// Copyright © 2022 Rangeproof Pty Ltd. All rights reserved.
|
|
|
|
import Foundation
|
|
|
|
extension Network.SOGS {
|
|
struct UserUnbanRequest: Codable {
|
|
/// List of one or more room tokens from which the user should be banned (the invoking user must be a `moderator`
|
|
/// of all of the given rooms
|
|
///
|
|
/// This may be set to the single-element list ["*"] to ban the user from all rooms in which the invoking user has `moderator`
|
|
/// permissions (the call will succeed if the calling user is a moderator in at least one channel)
|
|
///
|
|
/// Exclusive of `global`
|
|
let rooms: [String]?
|
|
|
|
/// If true then remove a server-wide global ban
|
|
///
|
|
/// Exclusive of rooms
|
|
let global: Bool?
|
|
}
|
|
}
|