@@ -760,6 +760,42 @@ public extension Api.stories {
760760
761761 }
762762}
763+ public extension Api . stories {
764+ enum CanSendStoryCount : TypeConstructorDescription {
765+ case canSendStoryCount( countRemains: Int32 )
766+
767+ public func serialize( _ buffer: Buffer , _ boxed: Swift . Bool ) {
768+ switch self {
769+ case . canSendStoryCount( let countRemains) :
770+ if boxed {
771+ buffer. appendInt32 ( - 1014513586 )
772+ }
773+ serializeInt32 ( countRemains, buffer: buffer, boxed: false )
774+ break
775+ }
776+ }
777+
778+ public func descriptionFields( ) -> ( String , [ ( String , Any ) ] ) {
779+ switch self {
780+ case . canSendStoryCount( let countRemains) :
781+ return ( " canSendStoryCount " , [ ( " countRemains " , countRemains as Any ) ] )
782+ }
783+ }
784+
785+ public static func parse_canSendStoryCount( _ reader: BufferReader ) -> CanSendStoryCount ? {
786+ var _1 : Int32 ?
787+ _1 = reader. readInt32 ( )
788+ let _c1 = _1 != nil
789+ if _c1 {
790+ return Api . stories. CanSendStoryCount. canSendStoryCount ( countRemains: _1!)
791+ }
792+ else {
793+ return nil
794+ }
795+ }
796+
797+ }
798+ }
763799public extension Api . stories {
764800 enum FoundStories : TypeConstructorDescription {
765801 case foundStories( flags: Int32 , count: Int32 , stories: [ Api . FoundStory ] , nextOffset: String ? , chats: [ Api . Chat ] , users: [ Api . User ] )
@@ -1560,55 +1596,3 @@ public extension Api.updates {
15601596
15611597 }
15621598}
1563- public extension Api . updates {
1564- enum State : TypeConstructorDescription {
1565- case state( pts: Int32 , qts: Int32 , date: Int32 , seq: Int32 , unreadCount: Int32 )
1566-
1567- public func serialize( _ buffer: Buffer , _ boxed: Swift . Bool ) {
1568- switch self {
1569- case . state( let pts, let qts, let date, let seq, let unreadCount) :
1570- if boxed {
1571- buffer. appendInt32 ( - 1519637954 )
1572- }
1573- serializeInt32 ( pts, buffer: buffer, boxed: false )
1574- serializeInt32 ( qts, buffer: buffer, boxed: false )
1575- serializeInt32 ( date, buffer: buffer, boxed: false )
1576- serializeInt32 ( seq, buffer: buffer, boxed: false )
1577- serializeInt32 ( unreadCount, buffer: buffer, boxed: false )
1578- break
1579- }
1580- }
1581-
1582- public func descriptionFields( ) -> ( String , [ ( String , Any ) ] ) {
1583- switch self {
1584- case . state( let pts, let qts, let date, let seq, let unreadCount) :
1585- return ( " state " , [ ( " pts " , pts as Any ) , ( " qts " , qts as Any ) , ( " date " , date as Any ) , ( " seq " , seq as Any ) , ( " unreadCount " , unreadCount as Any ) ] )
1586- }
1587- }
1588-
1589- public static func parse_state( _ reader: BufferReader ) -> State ? {
1590- var _1 : Int32 ?
1591- _1 = reader. readInt32 ( )
1592- var _2 : Int32 ?
1593- _2 = reader. readInt32 ( )
1594- var _3 : Int32 ?
1595- _3 = reader. readInt32 ( )
1596- var _4 : Int32 ?
1597- _4 = reader. readInt32 ( )
1598- var _5 : Int32 ?
1599- _5 = reader. readInt32 ( )
1600- let _c1 = _1 != nil
1601- let _c2 = _2 != nil
1602- let _c3 = _3 != nil
1603- let _c4 = _4 != nil
1604- let _c5 = _5 != nil
1605- if _c1 && _c2 && _c3 && _c4 && _c5 {
1606- return Api . updates. State. state ( pts: _1!, qts: _2!, date: _3!, seq: _4!, unreadCount: _5!)
1607- }
1608- else {
1609- return nil
1610- }
1611- }
1612-
1613- }
1614- }
0 commit comments