mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Folder improvements
This commit is contained in:
@@ -436,6 +436,42 @@ public extension Api {
|
||||
|
||||
}
|
||||
}
|
||||
public extension Api {
|
||||
enum InputChatlist: TypeConstructorDescription {
|
||||
case inputChatlistDialogFilter(filterId: Int32)
|
||||
|
||||
public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) {
|
||||
switch self {
|
||||
case .inputChatlistDialogFilter(let filterId):
|
||||
if boxed {
|
||||
buffer.appendInt32(-203367885)
|
||||
}
|
||||
serializeInt32(filterId, buffer: buffer, boxed: false)
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
switch self {
|
||||
case .inputChatlistDialogFilter(let filterId):
|
||||
return ("inputChatlistDialogFilter", [("filterId", filterId as Any)])
|
||||
}
|
||||
}
|
||||
|
||||
public static func parse_inputChatlistDialogFilter(_ reader: BufferReader) -> InputChatlist? {
|
||||
var _1: Int32?
|
||||
_1 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
if _c1 {
|
||||
return Api.InputChatlist.inputChatlistDialogFilter(filterId: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
public extension Api {
|
||||
enum InputCheckPasswordSRP: TypeConstructorDescription {
|
||||
case inputCheckPasswordEmpty
|
||||
@@ -532,42 +568,6 @@ public extension Api {
|
||||
|
||||
}
|
||||
}
|
||||
public extension Api {
|
||||
enum InputCommunity: TypeConstructorDescription {
|
||||
case inputCommunityDialogFilter(filterId: Int32)
|
||||
|
||||
public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) {
|
||||
switch self {
|
||||
case .inputCommunityDialogFilter(let filterId):
|
||||
if boxed {
|
||||
buffer.appendInt32(450955169)
|
||||
}
|
||||
serializeInt32(filterId, buffer: buffer, boxed: false)
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
switch self {
|
||||
case .inputCommunityDialogFilter(let filterId):
|
||||
return ("inputCommunityDialogFilter", [("filterId", filterId as Any)])
|
||||
}
|
||||
}
|
||||
|
||||
public static func parse_inputCommunityDialogFilter(_ reader: BufferReader) -> InputCommunity? {
|
||||
var _1: Int32?
|
||||
_1 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
if _c1 {
|
||||
return Api.InputCommunity.inputCommunityDialogFilter(filterId: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
public extension Api {
|
||||
enum InputContact: TypeConstructorDescription {
|
||||
case inputPhoneContact(clientId: Int64, phone: String, firstName: String, lastName: String)
|
||||
|
||||
Reference in New Issue
Block a user