mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
- macos related changes
This commit is contained in:
@@ -648,7 +648,8 @@ func _internal_updateStarRefProgram(account: Account, id: EnginePeer.Id, program
|
||||
}
|
||||
}
|
||||
|
||||
public final class TelegramConnectedStarRefBotList {
|
||||
public final class TelegramConnectedStarRefBotList : Equatable {
|
||||
|
||||
public final class Item: Equatable {
|
||||
public let peer: EnginePeer
|
||||
public let url: String
|
||||
@@ -701,6 +702,10 @@ public final class TelegramConnectedStarRefBotList {
|
||||
self.items = items
|
||||
self.totalCount = totalCount
|
||||
}
|
||||
|
||||
public static func == (lhs: TelegramConnectedStarRefBotList, rhs: TelegramConnectedStarRefBotList) -> Bool {
|
||||
return lhs.items == rhs.items && lhs.totalCount == rhs.totalCount
|
||||
}
|
||||
}
|
||||
|
||||
func _internal_requestConnectedStarRefBots(account: Account, id: EnginePeer.Id, offset: (timestamp: Int32, link: String)?, limit: Int) -> Signal<TelegramConnectedStarRefBotList?, NoError> {
|
||||
@@ -761,7 +766,8 @@ func _internal_requestConnectedStarRefBots(account: Account, id: EnginePeer.Id,
|
||||
}
|
||||
}
|
||||
|
||||
public final class TelegramSuggestedStarRefBotList {
|
||||
public final class TelegramSuggestedStarRefBotList : Equatable {
|
||||
|
||||
public final class Item: Equatable {
|
||||
public let peer: EnginePeer
|
||||
public let commissionPermille: Int32
|
||||
@@ -796,6 +802,10 @@ public final class TelegramSuggestedStarRefBotList {
|
||||
self.totalCount = totalCount
|
||||
self.nextOffset = nextOffset
|
||||
}
|
||||
|
||||
public static func == (lhs: TelegramSuggestedStarRefBotList, rhs: TelegramSuggestedStarRefBotList) -> Bool {
|
||||
return lhs.items == rhs.items && lhs.totalCount == rhs.totalCount && lhs.nextOffset == rhs.nextOffset
|
||||
}
|
||||
}
|
||||
|
||||
func _internal_requestSuggestedStarRefBots(account: Account, id: EnginePeer.Id, orderByCommission: Bool, offset: String?, limit: Int) -> Signal<TelegramSuggestedStarRefBotList?, NoError> {
|
||||
|
||||
Reference in New Issue
Block a user